AIX commands with examples
AIX commands with examples
To list the default group for current user: few aix commands with examples
#id -gn
To list all system groups for current user:
#id -Gn
To list the attribute of user root:
#lsuser root
To list the attributes of all users:
#lsuser ALL
To list the home directory of all users:
#lsuser -a HOME ALL
To list the authentication method for all users:
#lsuser -a auth1 auth2 ALL
To list expiry date:
#lsuser -a expires ALL
To list all system identifications for current user:
#id
To check account lock status of all users:
#lsuser -a account_locked ALL
To enable the user ravi:
#chuser -a login=true ravi
Enable ravi to login remotely:
#chuser -a rlogin=true ravi
Creates user aravi with default values in /usr/lib/security/mkuser.defalault:
#mkuser aravi
Create user kumar without su facility:
#mkuser su=false kumar
To remove user ravi:
#rmuser ravi
To remove user aravi and his all attributes:
#rmuser -p aravi
List users with tty nos and ip numbers:
#who
Lists history of login logout system startup and shutdowns:
#who /var/adm/wtmp
To list the run level:
#who -r
To verify user:
#usrck -n ravi
To list the current user:
#who am i /who -m
To create the group arkit:
#mkgroup arkit
To add users l1 l2 and l3 to arkit group:
#chgroup users=l1,l2,l3 arkit
To list all usernames:
#lsuser -a ALL
To delete the group arkit:
#rmgroup arkit
To change the authentication methods:
#chauthent
To change the unsuccessful login count:
#chuser unsuccessful_login_count=0 aravi
To change lame’s password (you can easily do this also via ssh if it’s needed):
#echo "lame:new_password" | chpasswd -c
Please write your valuable comments…
Thanks for your wonderful Support and Encouragement