From the course: Linux CentOS 7: User and Group Management

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Group accounts and group password files

Group accounts and group password files - Linux Tutorial

From the course: Linux CentOS 7: User and Group Management

Start my 1-month free trial

Group accounts and group password files

- [Narrator] In Linux operating systems, groups are stored in the /etc/group file. Let's take a look at this file using less. In a terminal, type in less, space, /etc/group and hit Enter. This file is simpler than the /etc/passwd or the /etc/shadow file with only four columns. Let's take a look at the purpose of each column. The first column is the group name. The second column is the placeholder for the encoded group password because we're using the shadow suite. If we give our groups passwords, they'll be stored in the /etc/gshadow file. The third column is the numeric group ID. Non-admin group Ids start at 1000. This is configured in /etc/login.defs and can be changed. Any group with an ID under 1000 belongs to the root user or the system services. The fourth and last column is the users that belong to the group. If there were more than one user in the group, there would be commas between their names with no spaces. If a password is set for a group and we're using the shadow suite,…

Contents