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]
option | description |
---|---|
--name="user's name" | Set user's full name. |
--email=address | Set user's email address. |
--comment=text | Set user comments. |
--expiration=dd-mm-yyyy | NONE | Set account expiration date. |
--superuser=yes | no | Toggle superuser flag for user. |
--passwd | Set user password interactively. |
--passwd=password | Set user password. |
--group=groupname | NONE | Set user's group. |
--list | List all users and exit. |
--lock | Lock user account. |
--unlock | Unlock user account. |
--add | Add interactively privileges to given group. |
--add=server,servername,mode | Add server privilege (mode=R|RW|RWX). |
--add=zone,servername:zonename,mode | Add zone privilege (mode=R|RW|RWX). |
--add=net,servername:net | Add net (IP-range) restriction. |
--add=host,regexp | Add hostname mask (restriction). |
--add=ipmask,ipmask | Add IP-mask restriction. |
--add=level,level | Add privilege level. |
--add=elimit,days | Add host expiration limit. |
--add=def_dept,string | Add default department for adding hosts. |
--del=id | Delete privilege by it's ID number. |
--delall | Delete 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.