HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

m
modprpw(1M) modprpw(1M)
NAME
modprpw - modify protected password database
SYNOPSIS
modprpw [-E|-V][-l
|-n [domain]]
modprpw [-x][-l|
-n [domain]] username
modprpw [-A|-e|-v|
-k][-m field=value,... ] [-l|-n [domain]] username
DESCRIPTION
modprpw updates the user’s protected password database settings. This command is available only to the
superuser in a trusted system.
Usage other than via SAM, and/or modifications out of sync with
/etc/passwd or NIS+ tables, may
result in serious database corruption and the inability to access the system.
All updated values may be verified using getprpw(1M).
The database contains information for both local and NIS+ users. However, some NIS+ information is kept
on the master. Since a user may be both local and NIS+,
modprpw uses the nsswitch.conf(4) default if nei-
ther
-l nor -n are specified.
Options
modprpw sets user’s parameters as defined by the options specified. At least one option is required. If a
field is not specified in the option then its value remains unchanged in the database.
modprpw recognizes the following options...
-A To add a new user entry and to return a random password which the new user must use to login the
first time. This entry has to be created with the given username and the -m
uid=value.
Error is returned if the user already exists.
May be combined with one of the
-l or -n options. It also adds entries to the NIS+ tables, if
-n is
specified.
Unlike useradd(1M), it does not create nor populate the home directory, and it does not update
/etc/passwd .
-E This option is specified WITHOUT a user name to expire all users passwords. It goes through the
protected password database and zeroes the successful change time of all users. The result is all users
will need to enter a new password at their next login.
May be combined with one of -l or -n options.
-e This option is specified with a user name to expire the specified user’s password. It zeroes the success-
ful change time.
May be combined with options -l, -m, -n.
-k To unlock/enable a user’s account that has become disabled, except when the lock is due to a missing
password or * password.
May be combined with options -l, -m, -n.
-l This option specifies to modify data for a local user. It cannot be specified with the -n option. This
option must be specified with other options.
-m Modify the database field to the specified value and/or resets locks. Valid with one of -A, -e, -v,
-k
options; and one of -l, -n options.
A list of database fields may be used with comma as a delimiter. An "invalid-opt" is printed, and pro-
cessing terminates, if a list of database fields passed to -m contains an invalid database field.
Boolean values are specified as YES, NO, or DFT for system default values
(/tcb/files/auth/system/default). Numeric values are specified as positive numbers, 0,
or -1. If the value -1 is specified, the numeric value in the database is removed, allowing the system
default value to be used. Time values are specified in days, although the database keeps them in
seconds.
No aging is present if the following 4 database parameters are all zero:
u_minchg, u_exp,
u_life, u_pw_expire_warning.
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 1M503