Professional Documents
Culture Documents
Chapter 2:
User Management
Objectives
Examine /etc/group and /etc/passwd
Create, modify, and delete user accounts with
useradd, usermod, and userdel
Overview
/etc/group
Where is every user
commonly
represented? /etc/passwd
root::0:root
Field 1: name GID
Field 2: blank or x hardly used today
Field 3: numeric GID
Field 4: list of user for which this is their
supplementary group
/etc/group
root users supplementary group
root::0:root Line 1
staff::1: Line 2
bin::2:root,bin,daemon Line 3
sys::3:root,bin,sys,adm Line 4
lp::8:root,lp,adm Line 5
sn010101:x:210:241:Surizal Nazeri:/home/sn010101:bin/ksh
sn010101:2u6VExtjjXHFk:12285::::::
Password
Encryption
Adding a User
useradd command: add user to the system
Also creates users mailbox set MAIL variable
to point to /var/mail or /var/spool/mail
Remove user
# userdel sn010101