mkuser [ -a ] [ Attribute=Value ... ] Name
The mkuser command creates a new user account. The Name parameter must be a unique 8-byte or less string. You cannot use the ALL or default keywords in the user name. By default, the mkuser command creates a standard user account. To create an administrative user account, specify the -a flag.
The mkuser command does not create password information for a user. It initializes the password field with an * (asterisk). Later, this field is set with the passwd or pwdadm command. New accounts are disabled until the passwd or pwdadm commands are used to add authentication information to the /etc/security/passwd file.
You can use the Web-based System Manager Users application (wsm users fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit mkuser fast path to run this command.
To prevent login inconsistencies, you should avoid composing user names entirely of uppercase alphabetic characters. While the mkuser command supports multi-byte user names, it is recommended that you restrict user names to characters with the POSIX portable filename character set.
To ensure that your user database remains uncorrupted, you must be careful when naming users. User names must not begin with a - (dash), + (plus sign), @ (at sign), or ~ (tilde). You cannot use the keywords ALL or default in a user name. Additionally, do not use any of the following characters within a user-name string:
: | Colon |
" | Double quote |
# | Pound sign |
, | Comma |
= | Equal sign |
\ | Back slash |
/ | Slash |
? | Question mark |
' | Single quote |
` | Back quote |
Finally, the Name parameter cannot contain any space, tab, or new-line characters.
-a | Specifies that the user is an administrator. Only the root user can use this flag or alter the attributes of an administrative user. |
Attribute=Value | Initializes a user attribute. Refer to the chuser command for the valid attributes and values. |
Name | Specifies a unique 8-byte or less string. |
Access Control: This command should grant execute (x) access only to the root user and members of the security group. This command should be installed as a program in the trusted computing base (TCB). The command should be owned by the root user with the setuid (SUID) bit set.
Event | Information |
---|---|
USER_Create | user |
mkuser davis
mkuser -a davisYou must be the root user to create davis as an administrative user.
mkuser su=false davis
/usr/bin/mkuser | Contains the mkuser command. |
/usr/lib/security/mkuser.default | |
Contains the default values for new users. | |
/etc/passwd | |
Contains the basic attributes of users. | |
/etc/security/user | |
Contains the extended attributes of users. | |
/etc/security/user.roles | |
Contains the administrative role attributes of users. | |
/etc/security/passwd | |
Contains password information. | |
/etc/security/limits | |
Defines resource quotas and limits for each user. | |
/etc/security/environ | |
Contains the environment attributes of users. | |
/etc/group | |
Contains the basic attributes of groups. | |
/etc/security/group | |
Contains the extended attributes of groups. | |
/etc/security/.ids | Contains standard and administrative user IDs and group IDs. |
The chfn command, chgrpmem command, chsh command, chgroup command, chuser command, lsgroup command, lsuser command, mkgroup command, mkuser.sys command, passwd command, pwdadm command, rmgroup command, rmuser command, setgroups command, setsenv command.
For more information about the identification and authentication of users, discretionary access control, the trusted computing base, and auditing, refer to Security Administration in AIX Version 4.3 System Management Guide: Operating System and Devices.
Setting up and running Web-based System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.
For more information about administrative roles, refer to Administrative Roles Overview in AIX Version 4.3 System Management Guide: Operating System and Devices.