User creation
Syntax:
mkuser
Example:
mkuser id=234 pgrp=aix su=true
home=/home/abc gecos=”aix admin” abc
The same
can be done by using smitty.
Changing user attributes
Syntax:
chuser
Example:
chuser gecos=”AIX team member” abc
Listing user attributes
Syntax:
lsuser (or)
lsuser –f
Example:
lsuser –f abc
It will
show you all the attributes of the user abc.
If you
want to compare the attributes of two users, use the flag –c instead of –f
followed by the user names.
lsuser –c abc, xyz
Changing shell of the user
Syntax:
chsh
Example:
chsh abc
It will
show you the list of available shells. Type Yes then give the new shell.
Setting
password to the username
Syntax:
passwd
Example:
passwd abc
Changing password for “abc”
abc’s new password:
Enter the new password again:
We can
also use the command pwdadm to change the password.
Example: pwdadm
Note that
the syntax is same as passwd command.
Deleting users
Syntax:
rmuser –p
Example:
rmuser –p abc
It will
remove the user id from the server along with the password information.
Similarly
general commands used for group activities are as follows.
To create a group
mkgroup
Example: mkgroup aixadmin
To change group properties
chgroup
Example: chgroup users=sam,ram aixadmin
To delete a group
rmgroup
We can
use –p flag to remove the key store values of a group and –R to remove the ldap
information.
Example: rmgroup aixadmin
For detailed information, please go through the below link.