OpenBSD manual page server

Manual Page Search Parameters

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

usermanage user login information on the system

user add -D [-b base-directory] [-e expiry-time] [-f inactive-time] [-g gid | name | =uid] [-k skel-directory] [-L login-class] [-r low..high] [-s shell]

user add [-mov] [-b base-directory] [-c comment] [-d home-directory] [-e expiry-time] [-f inactive-time] [-G secondary-group[,group,...]] [-g gid | name | =uid] [-k skel-directory] [-L login-class] [-p password] [-r low..high] [-s shell] [-u uid] user

user del -D [-p preserve-value]

user del [-prv] user

user info [-e] user

user mod [-mov] [-c comment] [-d home-directory] [-e expiry-time] [-f inactive-time] [-G secondary-group[,group,...]] [-g gid | name | =uid] [-L login-class] [-l new-login] [-p password] [-s shell] [-u uid] user

The user utility acts as a frontend to the useradd(8), usermod(8), userinfo(8), and userdel(8) commands.

For a full explanation of the options, see the relevant manual page.

/etc/skel/.[A-z]*
Skeleton files for new user
/etc/usermgmt.conf
Configuration file for user, group(8) and those backend commands

The user utility exits 0 on success, and >0 if an error occurs.

chpass(1), group(5), passwd(5), usermgmt.conf(5), useradd(8), userdel(8), userinfo(8), usermod(8)

Other implementations of the user utilities use the inactive-time parameter to refer to the maximum number of days allowed between logins (this is used to lock "stale" accounts that have not been used for a period of time). However, on OpenBSD systems this parameter refers instead to the password change time. This is due to differences in the passwd(5) database compared to other operating systems.

The user utility first appeared in OpenBSD 2.7.

The user utility was written by Alistair G. Crooks <agc@NetBSD.org>.

February 6, 2022 OpenBSD-7.4