sudo: timestamp too far in the future
Posted: Wed Nov 29, 2006 4:17 pm
[PROBLEM]
After changing date/time on my server, I received this errormessage when executing sudo:
Remove any references to previous sudo executions from your user.
(Unfortunately you have to have an enabled root account to do this)
-- OR --
Set your date/time to some time AFTER the one sudo is expecting.
run "sudo -k" to clear the timestamp.
Set date/time back to what it should be.
-- OR --
Open another terminal (Alt+Fsomething) and log in as your non-root user.
Reset the timestamps of the sudo files to -now-:
(For some strange reason, my newly set up Ubuntu server 6.06 suddenly decided to change the timestamp for my current login)
[ADDITIONAL Information]
The problem seems to be caused by wrong timestamps of the files in /var/run/sudo/$LOGNAME (where $LOGNAME is the username you're currently logged in as).
Further solutions, infos, can be found here.
After changing date/time on my server, I received this errormessage when executing sudo:
[SOLUTION]sudo: timestamp too far in the future
Remove any references to previous sudo executions from your user.
(Unfortunately you have to have an enabled root account to do this)
Code: Select all
su root
rm -R /var/run/sudo/$LOGNAME/*
Set your date/time to some time AFTER the one sudo is expecting.
run "sudo -k" to clear the timestamp.
Set date/time back to what it should be.
-- OR --
Open another terminal (Alt+Fsomething) and log in as your non-root user.
Reset the timestamps of the sudo files to -now-:
Code: Select all
sudo touch /var/run/sudo/$LOGNAME/*
[ADDITIONAL Information]
The problem seems to be caused by wrong timestamps of the files in /var/run/sudo/$LOGNAME (where $LOGNAME is the username you're currently logged in as).
Further solutions, infos, can be found here.