GNU/Linux |
RedHat 5.2(Apollo) |
|
![]() |
passwd(1) |
![]() |
passwd − update a user’s authentication tokens(s)
passwd [-u] [username]
Passwd is used to update a user’s authentication token(s).
Only the superuser may update another user’s password by supplying a username. The option, -u, is used to indicate that the update should only be for expired authentication tokens (passwords); the user wishes to keep their non-expired tokens as before.
Passwd is configured to work through the Linux-PAM API. Essentially, it initializes itself as a "passwd" service with Linux-PAM and utilizes configured password modules to authenticate and then update a user’s password.
A simple entry in the Linux-PAM configuration file for this service would be:
#
# passwd service entry that does strength checking of
# a proposed password before updating it.
#
passwd password requisite pam_cracklib.so retry=3
passwd password required pam_pwdb.so use_authtok
#
Note, other module-types are not required for this application to function correctly.
On successful completion of its task, passwd will complete with exit code 0. An exit code of 1 indicates an error occurred. Textual errors are written to the standard error stream.
Linux-PAM (Pluggable Authentication modules for Linux).
/etc/pam.conf - the Linux-PAM configuration file
None known.
pam(8), and pam_chauthok(2).
For more
complete information on how to configure this application
with Linux-PAM, see the Linux-PAM System
Administrators’ Guide at
<http://parc.power.net/morgan/Linux-PAM/index.html>
![]() |
passwd(1) | ![]() |