modprpw.1m (2010 09)
m
modprpw(1M) modprpw(1M)
(TO BE OBSOLETED)
NAME
modprpw - modify protected password database
SYNOPSIS
modprpw [-E|-V][
-l]
modprpw [-x][-l
] username
modprpw [-A|-e
|-v|-k][-m field=value ,... ] [-l
] 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 may result in serious
database corruption and the inability to access the system.
All updated values may be verified using the
getprpw command. See getprpw (1M).
modprpw uses the /etc/nsswitch.conf
configuration file default if
-l is not specified. See
nsswitch.conf(4).
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 the
-l option.
Unlike the
useradd command, 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 user’s 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 the
-l option.
-e This option is specified with a user name to expire the specified user’s password. It zeroes the suc-
cessful change time.
May be combined with the
-l and/or -m options.
-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 the
-l and/or -m options.
-l This option modifies data for a local user, username . This option must be specified with other
options.
-m field =value ,...
Modify the database field to the specified value and/or resets locks. Valid with one of the following
options: -A, -e, -v, -k,or-l.
A list of database fields may be used with comma as a delimiter. An "invalid-opt" is printed, and
processing 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 3: September 2010 − 1 − Hewlett-Packard Company 1