How to solve "sudo: timestamp too far in the future"

sudo is a must to have in all Unix host to prevent wide-spread of root account. It also has built-in security checking by time. However, sometimes this feature might annoy sudo to stop working after adjusting date/time back from the future.

sudo: timestamp too far in the future: Aug  9 18:31:44 2007

To solve this problem, I have a clue.

sudo usually stores access information in /var/run/sudo including timestamp in user basis. So resolving this problem is as simple as just remove your user from that directory. For example, in case of your user is rootman.

rm -rf /var/run/sudo/root/man

sudo will forget all you have done in the future and serves you as usual.

Tags: , ,

Awesome, this worked for me.

Awesome, this worked for me. Thanks a ton ! Instead of removing I called 'touch /var/run/sudo/man/* to change the timestamp of all files in that dir and it worked :).

No...

"No keyboard found, try F1 to solve the problem" ... -The problem "solved" here : sudo doesn't work -Try "rm -rf /var/run/sudo/root/man" to solve it. -Ok, but you need to be root to do this -Sudo doesn't work, that's exactly the problem... :)

It works!

To use sudo for delete the directory, you need to set the date to the future (to the date indicated by the error message). If you can't do sudo for this, you'll need to logout and login, and set the date. Thanks for the solution, and sorry for my bad english!

there is an easier way

sudo -K

Post new comment