1. Create a user account in Solaris.
useradd -u 101 -g 200 -d /export/home/judi -m -s /usr/bin/ksh -c "Judi - Test User" Judi
-u : The UID of the new user
-g : An existing group's integer ID or character-string name
-d : Home directory for the user
-m : Create the Home directory for the user
-s : Shell for the user account
-c : Comment for the user account, Any text string
passwd judi; passwd -f judi
2. Remove all secondary group for a user in solaris
usermod -G "" testuser
passwd -x 91 -n 7 -w 28 oracle
-x : Max password age
-n : Minimum 7 days required to change password
-w : warn after 28 days
usermod -e 03/31/2017 oracle
- Automatically Account will expire on 31-Mar-2017
No comments:
Post a Comment