|
|
HP-UX Reference > Uuserdbget(1M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEuserdbget — display information residing in the user database, /var/adm/userdb DESCRIPTIONuserdbget displays the per-user information residing in the user database as a sequence of attribute=value pairs. Each pair is printed on a separate line and is preceded by the username. A per-user value in the user database, /var/adm/userdb, overrides any system-wide default configured in /etc/default/security. See userdb(4) and security(4) for more details about the user database and system-wide defaults, respectively. If no attr arguments are specified on the command line, userdbget displays all configurable attributes of users in the user database. If one or more attr arguments are specified, userdbget displays only those attributes. OptionsThe following options are recognized:
RETURN VALUEuserdbget exits with one of the following values:
EXAMPLESIn the following example, all attributes for user joe are printed. The audit flag for user joe is enabled. The display last login feature is disabled. /usr/sbin/userdbget -u joe joe AUDIT_FLAG=1 joe DISPLAY_LAST_LOGIN=0 In the next example, only specific attributes are printed. The audit flag for user joe is enabled. No value is printed for MIN_PASSWORD_LENGTH, because that attribute is not defined for user joe; the minimum password length for user joe is the system-wide default defined in /etc/default/security (see security(4)). /usr/sbin/userdbget -u joe AUDIT_FLAG MIN_PASSWORD_LENGTH joe AUDIT_FLAG=1 In the last example, userdbget prints all configurable attributes of all users in the user database. /usr/sbin/userdbget -a joe AUDIT_FLAG=1 joe DISPLAY_LAST_LOGIN=0 jane ALLOW_NULL_PASSWORD=0 mike AUDIT_FLAG=0 |
|