Tag Archive for group file in linux

Understanding group file in Linux

/etc/group is a text file which defines the groups to which users belongs to under Linux and UNIX operating system. There is one entry per line, and each entry is separated by colon(:) symbol. There are total of 4 fields per line.


Now, let’s elaborate the fields for the entries.

  • Group Name: Name of the group.
  • Password: Generally password is not used, hence it is empty/blank. It can store encrypted password. This is useful to implement privileged groups.
  • Group ID: Each user must be assigned a group ID. You can see this number in your /etc/passwd file.
  • 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.