LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1296|回复: 5

更改系统时间后。不能使用终端了!提示无效!

[复制链接]
发表于 2006-1-2 15:11:58 | 显示全部楼层 |阅读模式
我在用hwclock。手工校正了系统的时间后。发现无法使用终端了。提示
_>sudo: timestamp too far in the future: Jan  2 22:49:21 2006

无论现在输入什么。都是无法执行命令。我的英文不好。请问一下。有那位大侠知道是什么原因吗?同进希望各位能帮我解决这个问题。重装系统太麻烦了。我以前没有碰到过这样的问题。在网上也没找到解决的办法。所以只好向各位求助了!不知能否帮忙看一下这个是什么一回事!好吗?
发表于 2006-8-30 11:09:21 | 显示全部楼层
我也遇到用样î˜,÷î怎么ã³?
谢谢!:)
回复 支持 反对

使用道具 举报

发表于 2006-9-1 16:18:21 | 显示全部楼层
开机直接进入文字模式,然后用命令呢?
回复 支持 反对

使用道具 举报

发表于 2006-9-1 17:33:52 | 显示全部楼层
你现在的时间比你调整前的时间超前了,系统不让你操作,先把时间改回来应该就能用了。
回复 支持 反对

使用道具 举报

发表于 2006-9-4 09:20:09 | 显示全部楼层
在windows下把时间改了
回复 支持 反对

使用道具 举报

发表于 2006-11-15 08:44:12 | 显示全部楼层
解决办法如下:

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

Thats it. Hope this helps.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表