A timestamp error occurs when running the sudo command in Linux.

Source: Internet
Author: User
A timestamp error occurs when running the sudo command in Linux-Linux general technology-Linux technology and application information. For more information, see the following. If you encounter the problem after changing the linux time, you can use the following method.

Method 1:
1. Check the timestamp in The sudo report. The result is as follows:

Sudo: timestamp too far in the future: Jun 11 18:37:15 2008

2. Use "Adjust date and time" to set the system date/time to the time after the sudo timestamp or The sudo timestamp.

3. Run 'sudo-k'. (clear the timestamp ).

4. Use "Adjust date and time" to set the system date/time back to the correct time.

OK.

Method 2:
You can also delete user files in "/var/run/sudo ".

The procedure is as follows:
1. Run the su command to go to the root user.

2. Delete the folder username (This username depends on your actual username)

(Rm-rf/var/run/sudo/username)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.