HP-UX Reference (11i v1 00/12) - 1 User Commands N-Z (vol 2)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/neqn.1
________________________________________________________________
___ ___
p
passwd(1) passwd(1)
NAME
passwd - change login password and associated attributes
SYNOPSIS
passwd [name]
passwd -r files [-F file][name]
passwd -r files [-e [shell]] [-gh][name]
passwd -r files -s [-a]
passwd -r files -s [name]
passwd -r files [-d-l][-f][-n min][-w warn][-x max] name
passwd -r nis [-e [shell]] [-gh][name]
passwd -r nisplus [-e [shell]] [-gh][-D domain][name]
passwd -r nisplus -s [-a]
passwd -r nisplus -s [-D
domain][name]
passwd -r nisplus [-l][
-f][-n min][-w warn][-x max][
-D domain] name
passwd -r dce [-e [shell]] [-gh][name]
DESCRIPTION
The
passwd command modifies the password as well as the attributes associated with the login name.If
name is omitted, it defaults to the invoking user’s login name, which is determined using
getuid (see
getuid(2)).
Ordinary users can only change passwords corresponding to their login name. If an old password has been
established, it is requested from the user. If valid, a new password is obtained. Once the new password is
entered, it is determined if the old password has "aged" sufciently. If password aging is not sufficient, the
new password is rejected and
passwd terminates (see passwd(4)).
If password aging and construction requirements are met, the password is re-entered to ensure consistency.
If the new copy differs, passwd repeats the new password prompting cycle, at most twice.
A superuser, whose effective user ID is zero (see id(1) and su(1)), is allowed to change any password and is
not forced to comply with password aging. Superusers are not prompted for old passwords, unless they are
attempting to change a superuser’s password in a trusted system. On untrusted systems, superusers are
not forced to comply with password construction requirements. Null passwords can be created by entering
a carriage return in response to the prompt for a new password.
The DCE repository (
-r dce) is only available if Integrated Login has been configured, see auth.adm(1M).
If Integrated Login has been configured, other considerations apply. A user with appropriate DCE
privileges is capable of modifying a user’s password, shell, gecos or home directory - this is not dependent
upon superuser privileges.
If the repository is not specified, i.e.
passwd [name], the password is changed in all existing repositories
configured in /etc/nsswitch.conf
. If password options are used, and no repository is specified, the
default repository is
files.
Options
The following options are recognized:
-D domain Use the passwd.org_dir
in the specified domain. This option is for nisplus reposi-
tories only. If not specified, the default domain is returned.
-e shell Modify the default shell for the user’s login name in the password file. If the shell is not
provided, the user will be prompted to enter the default login shell.
-F name The default password file is /etc/passwd. The -F option can be used to choose an alter-
nate password file, where read and write permissions are required. This option is only
availableusing the files repository, and it is not intended for trusted mode.
-g Change the gecos information in the password file, which is used by the finger
com-
mand. The user is prompted for each subfield: name, location, work phone, and home
phone.
HP-UX Release 11i: December 2000 1 Section 1645
___
___