How to use the Linux system Passwd command

  

Linux users must be quite familiar with the various command lines, but today Xiaobian still brings you a practical command line, that is the passwd command line, not yet Please ask the users who have the function of the passwd command line. Let's take a look.

effect: change password

Format: passwd [options] [LOGIN]

Description:

ordinary users can only modify their own Password; superuser can modify the password of any account; can also change the validity period of the relevant account password;

Superuser can not enter the password of the user to be modified;

Options:

-a,--all

Use with -S to display all user status

-d,--delete

Delete user password

-e,--expire

Immediately invalidate the user password, forcing the user to change the password the next time they log in

-h,--help

Display help information and exit < Br>

-i,--inactive INACTIVE

After the account has expired INACTIVE days, the user can no longer log in with the account

-n,--mindays MIN_DAYS

The password is modified twice at least MIN_DAYS days. If MIN_DAYS is 0, it can be modified at any time

-S,--status

It shows account status information, a total of seven fields, namely login, L (P or NP), last modified, the minimum age, maximum age, warning period, inactive period. The units of these ages are all days. Previous12Next page Total 2 pages

Copyright © Windows knowledge All Rights Reserved