group

/etc/group file

Example of contents of file

It stores group information or defines the user groups i.e. it defines the groups to which users belong. There is one entry per line, and each line has the following format (all fields are separated by a colon (:)

Interpretation
access-login:x:2147483646:eceja,mimigonz
____________ _ __________ ______________
|			| |          |
|			| |          |
|			| |          |
1			2 3          4						
  1. group_name It is the name of group. If you run ls -l command, you will see this name printed in the group field.
  2. Password: Generally password is not used, hence it is empty/blank. It can store encrypted password. This is useful to implement privileged groups.
  3. Group ID (GID): Each user must be assigned a group ID. You can see this number in your passwd file.
  4. Group List: It is a list of user names of users who are members of the group. The user names, must be separated by commas.
Example output
cat /etc/group
root:x:0:
bin:x:1:
daemon:x:2:
sys:x:3:
adm:x:4:oracle-cloud-agent,oracle-cloud-agent-updater,ocarun,opc
tty:x:5:
disk:x:6:
oracle-cloud-agent:x:994:oracle-cloud-agent,oracle-cloud-agent-updater,ocarun
cgred:x:995:
chrony:x:996:
ssh_keys:x:997:
polkitd:x:998:
input:x:999:
opc:x:1000:
nfsnobody:x:65534:
access-sudoers:x:2147483645:aalisha,abkhalid,apadda,deepsahu,djanapat,dphilip,eceja,erwang,gkallutl,jacklin,jalaridc,jsicardo,khackel,laguiler,logutu,luisflo,michoudh,mimigonz,mpreddy,nbawa,paraspat,pawankuk,pdunlap,phkatta,phperuma,priyjjai,rcamaril,rexu,rpedraza,rubsilve,seramali,shrangar,smakam,sstavits,subataby,sveeraga,sveerapa,swdash,syang,vesosa,vishshuk,vivejha,yanjding,yanrwang
access-login:x:2147483646:aalisha,abkhalid,apadda,deepsahu,djanapat,dphilip,eceja,erwang,gkallutl,jacklin,jalaridc,jsicardo,khackel,laguiler,logutu,luisflo,michoudh,mimigonz,mpreddy,nbawa,paraspat,pawankuk,pdunlap,phkatta,phperuma,priyjjai,rcamaril,rexu,rpedraza,rubsilve,seramali,shrangar,smakam,sstavits,subataby,sveeraga,sveerapa,swdash,syang,vesosa,vishshuk,vivejha,yanjding,yanrwang