Activating an expired Linux Account

Source: Internet
Author: User
Linux activation expiration account-Linux general technology-Linux technology and application information. The following is a detailed description. When I learned the usermod command, I got my account expired.

Usermod-E limit 1-1-1 myusercount

But I want to save it.

Usermod-E 2039-12-31 myusercount

A few words failed, so I understood the chage command and still did not solve the problem. It seems that there was no corresponding information in/etc/passwd, and I didn't find a good solution on the Internet, so I had to ask the master, the Master said to look at the shadow file, so he manually modified the shadow file and unblocked it. As for how to change the shadow file, man shadow only needs to look at the content of each field, the following is a shadow record for a usable User:
CODE: junjie2: $1 $ YDW. HyX3 $ uUM7PB5Y35rijisxaXGjX0: 13922: 0: 99999: 0 :::

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.