
In AIX, we can use command mkuser to create a new user account. Below is the example usage of mkuser command to create a new user.
# mkuser id='123' pgrp='admin' groups='technical' su='true' sugroups='technical' home='home/newuser' shell='/usr/bin/ksh' gecos='Admin User' maxage='0' newuser
Note
• pgrp : Identifies the user’s primary group.
• groups : Identifies the groups the user belongs to. The Value parameter is a comma-separated list of group names.
• home : Identifies the home directory of the user specified by the Name parameter.
• shell : Defines the program run for the user at session initiation.
• gecos : Supplies general information about the user specified by the Name parameter.
• account_locked : Indicates if the user account is locked. Possible values include: true or false.
• admin : Defines the administrative status of the user. Possible values are: true or false.
• admgroups : Lists the groups the user administrates. The Value parameter is a comma-separated list of group names.
• id : Specifies the user ID.
• login : Indicates whether the user can log in to the system with the login command. Possible values are: true or false
• su : Indicates whether another user can switch to the specified user account with the su command. Possible values are: true or false
• sugroups : Lists the groups that can use the su command to switch to the specified user account.
• maxage : Set the password to be change on weekly basis.


