InnerhalbNach weiteren Dokumenten suchenSupport-Ressourcen | Dieses Buch im PDF-Format herunterladen (6561 KB)
passwd(1)Name | Synopsis | Description | Options | Operands | Environment Variables | Exit Status | Files | Attributes | See Also | Notes Name
Synopsispasswd [-r files | -r ldap | -r nis | -r nisplus] [name] passwd [-r files] [-egh] [name] passwd [-r files] -s [-a] passwd [-r files] -s [name] passwd [-r files] [-d | -l | -u | -N] [-f] [-n min] [-w warn] [-x max] name passwd -r ldap [-egh] [name] passwd [-r ldap ] -s [-a] passwd [-r ldap ] -s [name] passwd -r ldap [-d | -l | -u | -N] [-f] [-n min] [-w warn] [-x max] name passwd -r nis [-egh] [name] passwd -r nisplus [-egh] [-D domainname] [name] passwd -r nisplus -s [-a] passwd -r nisplus [-D domainname] -s [name] passwd -r nisplus [-l | -u | -N] [-f] [-n min] [-w warn] [-x max] [-D domainname] name Description
The passwd command changes the password or lists password attributes associated with the user's login name. Additionally, privileged users can use passwd to install or change passwords and attributes associated with any login name. When used to change a password, passwd prompts everyone for their old password, if any. It then prompts for the new password twice. When the old password is entered, passwd checks to see if it has aged sufficiently. If aging is insufficient, passwd terminates; see pwconv(1M), nistbladm(1), and shadow(4) for additional information. The pwconv command creates and updates /etc/shadow with information from /etc/passwd. pwconv relies on a special value of 'x' in the password field of /etc/passwd. This value of 'x' indicates that the password for the user is already in /etc/shadow and should not be modified. If aging is sufficient, a check is made to ensure that the new password meets construction requirements. When the new password is entered a second time, the two copies of the new password are compared. If the two copies are not identical, the cycle of prompting for the new password is repeated for, at most, two more times. Passwords must be constructed to meet the following requirements: If all requirements are met, by default, the passwd command consults /etc/nsswitch.conf to determine in which repositories to perform password update. It searches the passwd and passwd_compat entries. The sources (repositories) associated with these entries are updated. However, the password update configurations supported are limited to the following cases. Failure to comply with the configurations prevents users from logging onto the system. The password update configurations are: Network administrators, who own the NIS+ password table, can change any password attributes. The administrator configured for updating LDAP shadow information can also change any password attributes. See ldapclient(1M). When a user has a password stored in one of the name services as well as a local files entry, the passwd command updates both. It is possible to have different passwords in the name service and local files entry. Use passwd -r to change a specific password repository. In the files case, superusers (for instance, real and effective uid equal to 0, see id(1M) and su(1M)) can change any password. Hence, passwd does not prompt privileged users for the old password. Privileged users are not forced to comply with password aging and password construction requirements. A privileged user can create a null password by entering a carriage return in response to the prompt for a new password. (This differs from passwd -d because the password prompt is still displayed.) If NIS is in effect, superuser on the root master can change any password without being prompted for the old NIS passwd, and is not forced to comply with password construction requirements. If LDAP is in effect, superuser on any Native LDAP client system can change any password without being prompted for the old LDAP password, and is not forced to comply with password construction requirements. Normally, passwd entered with no arguments changes the password of the current user. When a user logs in and then invokes su(1M) to become superuser or another user, passwd changes the original user's password, not the password of the superuser or the new user. Any user can use the -s option to show password attributes for his or her own login name, provided they are using the -r nisplus argument. Otherwise, the -s argument is restricted to the superuser. The format of the display is:
or, if password aging information is not present,
where Securitypasswd uses pam(3PAM) for password change. It calls PAM with a service name passwd and uses service module type auth for authentication and password for password change. Locking an account (-l option) does not allow its use for password based login or delayed execution (such as at(1), batch(1), or cron(1M)). The -N option can be used to disallow password based login, while continuing to allow delayed execution. Options
The following options are supported: Privileged User OptionsOnly a privileged user can use the following options: OperandsEnvironment Variables
If any of the LC_* variables, that is, LC_CTYPE, LC_MESSAGES, LC_TIME, LC_COLLATE, LC_NUMERIC, and LC_MONETARY (see environ(5)), are not set in the environment, the operational behavior of passwd for each corresponding locale category is determined by the value of the LANG environment variable. If LC_ALL is set, its contents are used to override both the LANG and the other LC_* variables. If none of the above variables is set in the environment, the C (U.S. style) locale determines how passwd behaves. Exit Status
The passwd command exits with one of the following values: Files
AttributesSee attributes(5) for descriptions of the following attributes:
The human readable output is Unstable. The options are Evolving. See Alsoat(1), batch(1), finger(1), login(1), nistbladm(1), cron(1M), domainname(1M), eeprom(1M), id(1M), mkpwdict(1M), passmgmt(1M), pwconv(1M), su(1M), useradd(1M), userdel(1M), usermod(1M), crypt(3C), getpwnam(3C), getspnam(3C), getusershell(3C), nis_local_directory(3NSL), pam(3PAM), loginlog(4), nsswitch.conf(4), pam.conf(4), passwd(4), policy.conf(4), shadow(4), shells(4), attributes(5), environ(5), pam_authtok_check(5), pam_authtok_get(5), pam_authtok_store(5), pam_dhkeys(5), pam_ldap(5), pam_unix_account(5), pam_unix_auth(5), pam_unix_session(5) NotesThe pam_unix(5) module is no longer supported. Similar functionality is provided by pam_unix_account(5), pam_unix_auth(5), pam_unix_session(5), pam_authtok_check(5), pam_authtok_get(5), pam_authtok_store(5), pam_dhkeys(5), and pam_passwd_auth(5). The nispasswd and ypasswd commands are wrappers around passwd. Use of nispasswd and ypasswd is discouraged. Use passwd -r repository_name instead. NIS+ might not be supported in future releases of the Solaris operating system. Tools to aid the migration from NIS+ to LDAP are available in the current Solaris release. For more information, visit http://www.sun.com/directory/nisplus/transition.html. Changing a password in the files and ldap repositories clear the failed login count. Changing a password reactivates an account deactivated for inactivity for the length of the inactivity period. Input terminal processing might interpret some key sequences and not pass them to the passwd command. Name | Synopsis | Description | Options | Operands | Environment Variables | Exit Status | Files | Attributes | See Also | Notes |
||||||||||