Account creation, display, removing on different Unix/Linux

 

 
Solaris
Red Hat
Ubuntu/Debian
HP
AIX
display users cat /etc/passwd

logins -x [-p]
cat /etc/passwd
system-config-users (GUI)
cat /etc/passwd cat /etc/passwd
logins -x
cat /etc/passwd

lsuser -f ALL   (detailed)
create a user

useradd

# user defaults
/usr/sadm/defadduser

useradd
system-config-users (GUI)
useradd useradd
sam
mkuser
useradd
remove a user userdel userdel
system-config-users (GUI)
userdel userdel
sam
rmuser
userdel
modify a user usermod usermod
system-config-users (GUI)
usermod usermod
sam
chuser -a
usermod
passwd -f
passwd -s
chfn <username>
chfn <username><shell>
change user password passwd passwd passwd passwd passwd
pwdadm
pwdck -t ALL
create a group groupadd groupadd groupadd groupadd mkgroup <group name>
remove a group groupdel groupdel groupdel groupdel rmgroup <group name>
modify a goup groupmod groupmod groupmod groupmod chgroup <attribute><group name>
password files /etc/passwd
/etc/shadow
/etc/passwd
/etc/shadow
/etc/passwd
/etc/shadow
/etc/passwd
/tcb/files/auth/r/root (trusted system)
/etc/security/passwd
useful user commands id -a
whoami
who
w
finger
logins -p
id -a
whoami
who
w
finger
id -a
whoami
who
w
finger
id
whoami
who
w
uptime (displays # of users logged in)
finger
id
whoami
who
w
uptime (displays # of users logged in)
finger

# License information
lslicense
chlicense

# Maximum number of processes for a user
lsattr -D -l sys0 -a maxuproc
chdev -l sys0 -a maxuproc=<number>
useful group commands groups
setpgrp
newgrp
groups groups groups
setprivgrp
groups
setgroups
lsgroup ALL
Password Policy /etc/security/policy.conf
/etc/default/passwd
/etc/login.defs      
Password Aging passwd chage -l <user>
chage <options> <user>