Group and User
Group and User:
How do I ...
All user administration can be performed using the smit/smitty tool. The top menu fast paths for these operations as follows:
|
TOP MENU |
smit security |
|
Users |
smit users |
|
Groups |
smit groups |
|
Passwords |
smit passwords |
|
Login Contorls |
smit logins |
List groups and attributes
lsgroup ALL
Usage: lsgroup [-c|-f] [-aList] {ALL|Group[,Group]...}
Add a group
mkgroup groupname
Usage: mkgroup [-a] [-A] "attr=value" ... newgroup
Change a group attirbute
chgroup users=userlist groupname
Usage: chgroup Attribute=Value ... Group
Remove a group
rmgroup groupname
Usage: rmgroup groupname
List all users and attributes
lsuser ALL
lsuser AL | awk '{print $1}' (just the user name)
lsuser [ -c | -f ] [ -a List ] { ALL | Name [ ,Name ] ... }
Add a new user
mkuser username
Usage: mkuser [ -a ] [ Attribute=Value ... ] Name
Change a users attributes
Change a users attribute to prevent them from login in
chuser -a login=flase username
Usage: chuser "attr=value" ... user
Remove a user and all password info for that user
rmuser -p usename
Usage: rmuser [-p] user
Change a user password
passwd username
Usage: passwd [ -f | -s ] [username]
Change a users password and eliminate the prompt to change password when user logs in.
As root change the users password
Edit /etc/security/passwd
Search for the users name and find the stantza flags = ADMCHG
Remove the work ADMCHG and save the file
The user will not be prompted to enter a new password when they login