Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old May 10th, 2006   #1
widyawan
First Cup of Ubuntu
 
Join Date: Apr 2006
Beans: 5
sudo:timestamp too far in the future

Dear all,

When I try to use sudo command, I got a message "sudo:timestamp too far in the future". I get this message after adjust date&time from XWindows panel.
I can not use sudo since then. I already reboot but still the error appear.
Any clue how to fix it?
Thanks b'fore

Widy
widyawan is offline   Reply With Quote
Old May 10th, 2006   #2
johnc4510
100% Pure Ubuntu
 
johnc4510's Avatar
 
Join Date: Jun 2005
Location: Arizona
Beans: 858
Ubuntu 8.10 Intrepid Ibex
Re: sudo:timestamp too far in the future

Open the adjust time and date again,
1.make sure it's set to 2006
2.Use the bottom tab to syncronize one time only with web.
Don't know if this will work, but a good place to start
__________________
Ubuntu Arizona LoCo Team - The Hottest LoCo on Earth!
ArizonaTeam Wiki | Arizona Launchpad | Membership
|
IRC Channel: #ubuntu-us-az
Server: irc.freenode.net
johnc4510 is offline   Reply With Quote
Old May 10th, 2006   #3
RavenOfOdin
Guest
 
Beans: n/a
Re: sudo:timestamp too far in the future

It worked for me.
  Reply With Quote
Old May 10th, 2006   #4
widyawan
First Cup of Ubuntu
 
Join Date: Apr 2006
Beans: 5
Re: sudo:timestamp too far in the future

Unfortunatelly it's not work. I 've faced this problem twice. I think my first problem arose from different cause, but I can not remember how.
widyawan is offline   Reply With Quote
Old May 10th, 2006   #5
Mustard
Chocolate Ubuntu Mocha Blend
 
Mustard's Avatar
 
Join Date: Jun 2005
Location: Australia
Beans: 1,777
Ubuntu 9.10 Karmic Koala
Re: sudo:timestamp too far in the future

Try this command..

Code:
sudo -K
Then see if sudo starts working again.
Mustard is offline   Reply With Quote
Old May 11th, 2006   #6
widyawan
First Cup of Ubuntu
 
Join Date: Apr 2006
Beans: 5
Re: sudo:timestamp too far in the future

After I restarted the computer it's work for me.
Could someone explain to me why this is happen and how to prevent this sudo:timestamp happen again?
Thanks ...
widyawan is offline   Reply With Quote
Old May 11th, 2006   #7
Mustard
Chocolate Ubuntu Mocha Blend
 
Mustard's Avatar
 
Join Date: Jun 2005
Location: Australia
Beans: 1,777
Ubuntu 9.10 Karmic Koala
Re: sudo:timestamp too far in the future

I believe its a security measure to stop a method of getting around certain security related restrictions by changing the date. To stop people from changing the date to use this 'exploit', sudo gives this message if the timestamp is 'too far into the future'. That's my vague explanation. I've read about it in detail a long time ago, but I don't recall the exact details. Basically if your clock is way out of sync and you change the date, this problem will occur. There are methods of fixing it, but they are not well documented on the wiki or in the forum atm. It might be an idea for someone to do the research and create a little HOW TO on how to resolve the issue.
Mustard is offline   Reply With Quote
Old June 11th, 2006   #8
rivimont
First Cup of Ubuntu
 
Join Date: Mar 2006
Beans: 2
Re: sudo:timestamp too far in the future

You should also be able to remove the user file in /var/run/sudo

I did this:
- su to root
- remove directory (rm -rf /var/run/sudo/username

Thats it. Hope this helps.
rivimont is offline   Reply With Quote
Old June 15th, 2006   #9
Lil_Eagle
A Carafe of Ubuntu
 
Lil_Eagle's Avatar
 
Join Date: May 2006
Location: Planet Earth
Beans: 102
Kubuntu 6.10 Edgy
Re: sudo:timestamp too far in the future

I never encountered this until today. Unfortunately, it's impossible to su to root unless you already enabled the (by default disabled) root account.

To do that, you need to do sudo passwd, which of course you can't because it won't let you do sudo commands.

It is really annoying. I think this issue changed my opinion of the sudo vs. su debate that is continuing. I was editing my dchp settings, accidently forgot a semi-colon and now I can't change it!

I know I can reboot into the recovery console and fix it, but what is the point of having a stable system that doesn't need rebooting if you have to reboot it to fix a stupid error like this one. It has to be a bug.

One thing I will certainly do is enable the root account.

There is another point to this sudo vs. root that people do not take into consideration. People around you can see what passwords you type and if you have to type your own password to do administrative functions, then the chances are higher that others (family members for instance) will learn your password.

They have more opportunities to see you type it if you log in every time with the same password as you use for administrative tasks. Alas, because almost all of the functions are coded to work with sudo, even after enabling the root account you still have to type the sudoer's password to access funtions, unless of course your in a terminal.
Lil_Eagle is offline   Reply With Quote
Old June 16th, 2006   #10
wizkrz
First Cup of Ubuntu
 
Join Date: Nov 2005
Beans: 2
Re: sudo:timestamp too far in the future - work-around

I was able to get around this by doing the following:

1. Check the timestamp sudo reports (will look something like below).
sudo: timestamp too far in the future: Jun 17 08:17:55 2006

2. Use Adjust Date & Time to set the date/time to the sudo timestamp or later.

3. Execute the 'sudo -k' command. (Clears the timestamp).

4. Use Adjust Date & Time to set the date/time back to the correct values.

Worked for me!

peace!
wizkrz is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:20 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry