Sei sulla pagina 1di 1

/etc/passwd - Database file of users /etc/shadow

• This file contains the encrypted user


passwords assigned by the password binary file
u1:x:500:500:prog:/home/u1:/bin/bash • Password’s are encrypted through DES (Data
Encryption Standard ) or MD5 (Message Digest
Ver. 5) Algorithm
User
User
User
User UID
UID Shell
Shell
Comment
Comment u1: hjkadfhs8974uyh5jrt/ :13536:0:99999:7:::

Mask
Mask Home
Home
GID
GID Max
Maxno.
no.of
of
Passwd
Passwd Directory
Directory User
Encrypted
Encrypted No.
No.of
ofdays
days
UserName
Name Password Since
days
daysto
tochange
change
Password Since1970
1970 password
password

Min.
Min.no.
no.of
of Warning
Warning
days
daysto
tochange
change Days
Days
password
password

/etc/group User Creation

• This file contains Group Name and GID of Creating


CreatingaaUser
User
the groups [root@comp1
[root@comp1 ~]#useradd <options><username>
~]#useradd <options> <username>

u1:x:500:sachin,tom
Options :
-u - UID
-g - Primary group name/ GID
Group
Group GID
GID -o - Override
Name
Name
-G - Secondary group
Mask
Mask Members
Members ofof -c - Comment
Passwd
Passwd that
that Group
Group
-d - Home directory
-s - Shell

Potrebbero piacerti anche