For the use of the passwd command detailed

Source: Internet
Author: User
Detailed

passwd

1. Role

ASSWD command originally modify the account login password, the use of permissions are all users.

2. Format

ASSWD [option] account name

3. Main parameters

-L: Locks the name of the account that is already named, only available to users who have superuser privileges.

-U: Unlock account lockout status, only users who have Superuser privileges can use it.

-X,--maximum=days: Maximum password usage time (days), only used by users with superuser privileges.

-N,--minimum=days: Minimum password usage time (days), only used by users with superuser privileges.

-D: Deletes the user's password, which is available only to users who have superuser privileges.

-S: Check the type of password authentication for the specified user, only users who have Superuser privileges can use it.

4. Application examples

$ passwd
Changing password for user Cao.
changing password for Cao
(current) UNIX Password:
New UNIX Password:
Retype new UNIX Password:
Passwd:all authentication tokens updated successfully.


As you can see from the above, use the passwd command to enter the old password, and then enter the new password two times.

  

Related Article

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.