HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
n
nispasswd(1) nispasswd(1)
mm/dd/yy The date password was last changed for username. (Note that all password aging dates are
determined using Greenwich Mean Time and, therefore, may differ by as much as a day in
other time zones.)
min The minimum number of days required between password changes for username.
max The maximum number of days the password is valid for username.
warn The number of days relative to max before the password expires that the username will be
warned.
Options
-g Change the gecos (finger) information.
-h Change the home directory.
-s Change the login shell. By default, only the NIS+ administrator can change the login shell.
User will be prompted for the new login shell.
-a Show the password attributes for all entries. This will show only the entries in the NIS+
passwd table in the local domain that the invoker is authorized to "read".
-d [username] Display password attributes for the caller or the user specified if the invoker has the right
privileges.
-l Locks the password entry for username.Subsequently,login(1) would disallow logins with
this NIS+ password entry.
-f Force the user to change password at the next login by expiring the password for username.
-n min Set minimum field for username. The min field contains the minimum number of days
between password changes for username.Ifmin is greater than max, the user may not
change the password. Always use this option with the -x option, unless max is set to -1
(aging turned off). In that case, min need not be set.
-x max Set maximum field for username. The max field contains the number of days that the pass-
word is valid for username. The aging for username will be turned off immediately if max is
set to -1. If it is set to 0, then the user is forced to change the password at the next login
session and aging is turned off.
-w warn Set warn field for username. The warn field contains the number of days before the pass-
word expires that the user will be warned whenever he or she attempts to log in.
-D domainname
Consult the passwd.org_dir
table in domainname. If this option is not specified, the
default domainname returned by
nis_local_directory()
will be used. This domain-
name is the same as that returned by domainname(1).
RETURN VALUE
The
nispasswd command exits with one of the following values:
0 SUCCESS.
1 Permission denied.
2 Invalid combination of options.
3 Unexpected failure. NIS+ passwd table unchanged.
4 NIS+ passwd table missing.
5 NIS+ is busy. Try again later.
6 Invalid argument to option.
7 Aging is disabled.
WARNINGS
HP-UX 11i Version 2 is the last HP-UX release on which NIS+ is supported.
LDAP is the recommended replacement for NIS+. HP fully supports the industry standard naming ser-
vices based on LDAP.
HP-UX 11i Version 1: September 2005 − 2 − Hewlett-Packard Company Section 1−−637