passwd [options] [user]Create or change a password associated with a user name. Only the owner or a privileged user may change a password. Owners need not specify their user name.
Normal users may change the so-called gecos information (user's full name, office, etc.) and login shell when using NIS or NIS+; otherwise only privileged users may change the following:
-D domainUse the passwd.org_dir database in domain, instead of in the local domain. Solaris only.
-eChange the login shell. Solaris only.
-gChange the gecos information. Solaris only.
-r dbChange the password in password database db, which is one of files, nis, or nisplus. Only a privileged user may use files. Solaris only.
-sDisplay password information:
user name.
Password status (NP for no password, PS for password, LK for locked).
The last time the password was changed (in mm/dd/yy format).
Number of days that must pass before user can rechange the password.
Number of days before the password expires.
Number of days prior to expiration that user is warned of impending expiration.
-aUse with -s to display password information for all users. user should not be supplied.
-dDelete password; user is no longer prompted for one.
-fForce expiration of user's password; user must change password at next login.
-hChange the home (login) directory. Solaris only.
-lLock user's password; mutually exclusive with -d.
-nSet Item 4 of user's password information. Usually used with -x.
-wSet Item 6 for user.
-xSet Item 5 for user. Use -1 to disable password aging, 0 to force expiration like -f.