Chinaunix首页 | 论坛 | 博客
  • 博客访问: 479387
  • 博文数量: 130
  • 博客积分: 2111
  • 博客等级: 大尉
  • 技术积分: 1373
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-28 09:55
个人简介

IT民工

文章分类

全部博文(130)

文章存档

2021年(1)

2019年(1)

2017年(3)

2014年(1)

2013年(3)

2012年(2)

2011年(3)

2010年(2)

2009年(114)

分类: LINUX

2009-09-01 12:49:14

今天出现下面的错误,但是我的当前时间 是对的
lwx@lwx-desktop:~$ sudo -i
sudo: timestamp too far in the future: Apr 16 20:38:12 2008

解决如下:
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: 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!

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后就正常了,呵呵
阅读(2955) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~