Understanding /etc/group File

Understanding /etc/group File

In this tutorial we will discuss about the topic Understanding /etc/group File in Linux.

The /etc/group file stores information about groups. By default, it can be viewed by every user, bot modified only by root. This file is modified by the groupadd or groupmod commands:

$ ls -l /etc/group
-rw-r--r-- 1 root root 1164 2012-06-02 16:18 /etc/group

The /etc/group file contains a line for each group. Every line has 4 fields delimited by colon (:) :

< /etc/group grep test
test:x:1035:

  • groupname
  • password – usually, x is displayed.
  • GID – the group’s ID
  • users – the users contained by the group (the user with the same name as the group is not displayed here)

This /etc/group is also an important file in the Linux system.

Was this Tutorial helpful? Help others share on Facebook, Twitter, and Google Plus!

 
Enjoyed this video?
Understanding /etc/group File
"No Thanks. Please Close This Box!"