moduser

This is utility for modifying user accounts. This utility can also be used to list all users. This utility can also be used to modify user account privileges, but it's recommended to use user groups rather than assigning privileges directly to user accounts. For more information about user privileges see the Section called Setting Privileges in Chapter 4.

moduser [--help] {username} [OPTIONS]

optiondescription
--name="user's name"Set user's full name.
--email=addressSet user's email address.
--comment=textSet user comments.
--expiration=dd-mm-yyyy | NONESet account expiration date.
--superuser=yes | noToggle superuser flag for user.
--passwdSet user password interactively.
--passwd=passwordSet user password.
--group=groupname | NONESet user's group.
--listList all users and exit.
--lockLock user account.
--unlockUnlock user account.
--addAdd interactively privileges to given group.
--add=server,servername,modeAdd server privilege (mode=R|RW|RWX).
--add=zone,servername:zonename,modeAdd zone privilege (mode=R|RW|RWX).
--add=net,servername:netAdd net (IP-range) restriction.
--add=host,regexpAdd hostname mask (restriction).
--add=ipmask,ipmaskAdd IP-mask restriction.
--add=level,levelAdd privilege level.
--add=elimit,daysAdd host expiration limit.
--add=def_dept,stringAdd default department for adding hosts.
--del=idDelete privilege by it's ID number.
--delallDelete all privileges.

This program can be used to list all users by specifying only --list. Privileges can be added either interactively by specifying short form of --add or non-interactively by using the long form.