Manual Page Search Parameters

USERINFO(8) System Manager's Manual USERINFO(8)

display user information

userinfo [-e] user

The 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).

The userinfo utility exits 0 if user exists, and non-zero if it does not.

id(1), passwd(5), groupinfo(8), user(8)

The userinfo utility first appeared in OpenBSD 2.7.

The userinfo utility was written by Alistair G. Crooks <agc@NetBSD.org>.
November 29, 2016 OpenBSD-current