You can use the passwd command to display password information about all users in a domain or about one particular user:
For your password information
passwd -s |
For all users in current domain
passwd -s -a |
For a particular user
passwd -s username |
Only the entries and columns for which you have read permission will be displayed.
Entries are displayed with the following format:
Without password aging: username status
With password aging: username status mm/dd/yy min max warn expire inactive
Field |
Description |
For Further Information |
---|---|---|
username |
The user's login name. |
|
status |
The user's password status. PS indicates the account has a password. LK indicates the password is locked. NP indicates the account has no password. | |
mm/dd/yy |
The date, based on Greenwich mean time, that the user's password was last changed. |
|
min |
The minimum number of days since the last change that must pass before the password can be changed again. | |
max |
The maximum number of days the password can be used without having to change it. | |
warn |
The number of days' notice that users are given before their passwords have to be changed. | |
expire |
A date on which users loose the ability to log in to their accounts. | |
inactive |
A limit on the number of days that an account can go without being logged in to. Once that limit is passed without a log in users can no longer access their accounts. |
See Specifying Maximum Number of Inactive Days for Users in NIS+. |
To display entries from a passwd table in another domain, use the -D option:
For all users in another domain
passwd -s -a -D domainname |
For a particular user
passwd -s -D domainname username |