To list all system identifications for current user:
#idTo list the default group for current user:
#id -gnTo list all system groups for current user:
#id -GnTo list the attribute of user root:
#lsuser rootTo list the attributes of all users:
#lsuser ALLTo list the home directory of all users:
#lsuser -a HOME ALLTo list all usernames:
#lsuser -a ALLTo list the authentication method for all users:
#lsuser -a auth1 auth2 ALLTo list expiry date:
#lsuser -a expires ALLTo check account lock status of all users:
#lsuser -a account_locked ALLTo enable the user gzadmin:
#chuser -a login=true gzadminEnable gzadmin to login remotely:
#chuser -a rlogin=true gzadminCreates user lame with default values in /usr/lib/security/mkuser.defalault:
#mkuser lameCreate user lame without su facility:
#mkuser su=false lameTo remove user lame:
#rmuser lameTo remove user lame and his all attributes:
#rmuser -p lameList users with tty nos and ip numbers:
#whoLists history of login logout system startup and shutdowns:
#who /var/adm/wtmpTo list the run level:
#who -rTo list the current user:
#who am i /who -mTo create the group lamers:
#mkgroup lamersTo add users l1 l2 and l3 to lamers group:
#chgroup users=l1,l2,l3 lamersTo delete the group lamers:
#rmgroup lamersTo change the authentication methods:
#chauthentTo change the unsuccessful login count:
#chuser unsuccessful_login_count=0 lameTo verify user:
#usrck -n lameTo change lame's password (you can easily do this also via ssh if it's needed):
#echo "lame:new_password" | chpasswd -c- Log in to post comments
- 21632 views