Solaris : User Administration
User’s can be managed by:
1) using command line
2) using file level
3) using admintool ( not available in solaris 10)
4) using smc ( solaris management console) (GUI)
Managing user’s using command line:
1) useradd : To create user
2) usermod : To modify existing user parameters
3) userdel : To delete user
The useradd Command
1) # useradd
ex: # username saurabh
It created user saurabh without home directory so that user cannot be login to the CDE ( common desktop environment) and JDS ( java desktop system)
2) # useradd -m -d /export/home/saurabh saurabh
-m : To make directory
-d : To specify Directory path
3) # useradd -m -d /export/home/Jack -u 200 -g 1 -G staff -c “system admin” -s /bin/bash/Jack
-m : To make directory
-d : To specify Home Directory Path
-u : To specify UID
-g : To specify GID i.e Group ID
-G : To specify secondary group ID
-c: To specify comment/description
-s : To specify login shell
The usermod Command
case 1) Modifying user mack and rename it to user neil change his primary group from other to staff
step 1) Remane his home directory to user ajeet
# mv /export/home/mack /export/home/neil
step 2) # usermod -l neil -g staff -d /export/home/neil mack
-l : To change login name
-g : to change primary group
-d : To specify Home Directory Path
Deleting USER’S using userdel command
1) Deleting user without Home directory
# userdel
ex: # userdel sparrow
2) Deleting user with Home directory
# userdel -r
ex: # userdel -r sparrow
-r : To remove Home Directory
More on User administration




