sudo: timestamp too far in the future问题解决

今天出现下面的错误,但是系统的当前时间 是对的
$ sudo -i
sudo: timestamp too far in the future: Apr 27 11:47:31 2026;

解决如下:
method 1: 
========= 
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: Apr 27 11:47:31 2026; 

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! 

method 2: 
========= 

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 

移走/var/run/sudo下面的username后就正常了

引用通告地址: 点击获取引用地址
评论: 0 | 引用: 0 | 阅读: 1935
发表评论
昵 称(*): 密 码:
网 址: 邮 箱:
验证码(*): 验证码图片 选 项:
头 像:
内 容(*):