PAUSE
ENCORE5
ENCORE
BOX
ILLUSTRATION
GO
Each entry in the /etc/group file
is composed of four fields:
1. The group name field
2. The group password field
3. The numerical group id
4. A comma-separated list of login names
for valid group members!
Let us take a closer look
at a typical /etc/group file ...
root:X:0:root,admin,oper
other:X:1:
cron:X:2:cron
bin:X:3:bin,who,michael,dxu,dxu2
uucp::4:uucp
user:X:100:yori,michael,jean,anna
demo::200:guest,vdemo,cdemo
The first field is the name of the group:
root:root:0:root,admin,oper
other:X:1:
cron:X:2:cron
bin:X:3:bin,who,michael,dxu,dxu2
uucp::4:uucp
user:X:100:yori,michael,jean,anna
demo::200:guest,vdemo,cdemo
The second field holds the group password:
root:root:0:root,admin,oper
other:X:1:
cron:X:2:cron
bin:X:3:bin,who,michael,dxu,dxu2
uucp::4:uucp
user:X:100:yori,michael,jean,anna
demo::200:guest,vdemo,cdemo
Note that only the group
root has a password!
The third field contains the group id.
root:X:0:root,admin,oper
other:X:1:
cron:X:2:cron
bin:X:3:bin,who,michael,dxu,dxu2
uucp::4:uucp
user:X:100:yori,michael,jean,anna
demo::200:guest,vdemo,cdemo
Note that each group is required
to have a distinct group id!
The fourth field contains the list of
login names for valid group members!
root:root:0:root,admin,oper
other:X:1:
cron:X:2:cron
bin:X:3:bin,who,michael,dxu,dxu2
uucp::4:uucp
user:X:100:yori,michael,jean,anna
demo::200:guest,vdemo,cdemo
Note that one person may belong to more
than one group, as is the instance with the
user michael!