Learn more about groups, a powerful feature to manage large numbers of users. Linux stores these users in a plain text file easily viewed by anyone. Linux also allows groups to have passwords for access control.
- [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,…it will be stored in the /etc/gshadow file.…
- Identify what data is stored in the /etc/passwd file with the shadow suite installed.
- Name the file that Linux group password hashes are stored in when the shadow suite is installed.
- Describe how to override default account aging information.
- Explain how to elevate privileges using the sudo command.
- Name the command that a user can use to change their effective primary group.