display user information
userinfo utility displays information about the
specified user. The fields shown are defined in
master.passwd(5). The encrypted
password is only displayed if the calling user is the superuser.
The options are as follows:
- Do not display anything (quiet mode). This form of the command is useful
for scripts which need to check whether a particular user name or UID is
already in use on the system.
The user argument may be either a user name
or a user ID (UID).
userinfo utility exits 0 if
user exists, and non-zero if it does not.
userinfo utility first appeared in
userinfo utility was written by
Alistair G. Crooks