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.