Groups in Linux System Administration Last Updated : 19 Nov, 2021 Comments Improve Suggest changes Like Article Like Report Each group in a Linux system is uniquely identified by a group identification number or GID. All the information listing groups in a system are stored in /etc/group file. The hashed passwords for groups are stored in /etc/gshadow file. Every user has a primary user group and zero or more supplementary groups. On login, the group membership is set to the primary group of user. This can be changed to any other supplementary group using newgrp or chgrp commands. Description of contents of /etc/group File This file is readable by any user but only root as read and write permissions for it. This file consists of the following colon separated information about groups in a system: Group name fieldPassword field If this field is empty, no password is needed.Group Identification number or GIDComma separated list of usernames of users that belong to the group. Syntax: [group_name]:[group_password]:[GID]:[users] Example: Description of contents of /etc/gshadow File This file is readable and writable by only by root user. Each entry of this file contains each group’s encrypted password, group membership and administrator information separated by a colon. Group name fieldPassword field It contains an encrypted password.The password is used when a user who is not a member of the group wants to gain the permissions of this group. Members can access the group without being prompted for a password. If no password is set, it is indicated by ‘!’ or ‘!!’.It implies only members can access the group. There’s no way other users can use the group.’!!’ indicates that no password has ever been set on the group. Comma separated list of user-names who are group administrators. Administrators can change the password or the members of the group. Comma separated list of user-names who are group members. Syntax: [group_name]:[group_password]:[administrators]:[users] Example: Comment More infoAdvertise with us Next Article Groups in Linux System Administration A Archana choudhary Follow Improve Article Tags : Linux-Unix linux-command Similar Reads Users in Linux System Administration User management is one of the fundamental tasks in Linux systems administration because a user has to go through a series of access controls to keep an environment secure and organized. It provides functionalities that include adding, modifying, and deleting user accounts, assigning privileges, and 8 min read What is Linux System Administration? Linux System Administration involves managing the operations of a Linux-based computer system. System administrators (or sysadmins) are the gatekeepers of the IT infrastructure, ensuring that all related hardware and software work reliably and securely. In this article, you will go through the basic 6 min read Beginner's Guide to Linux System Administration A Linux System Administrator manages the operations such as maintaining proper software, observing them, and even taking care of backup and hardware systems. It is recommended that before reading this article please go through the article What is Linux System Administration. Here we have some basics 5 min read Introduction to Webmin: Web-based Linux System Administration Linux system administration can be a difficult task, especially for beginners. Command-line interfaces are powerful tools for managing Linux systems, on the other hand, they can also be complex to operate on. When it comes to GUIs, we have a Web-based solution that simplifies the management of Linux 5 min read Groups Command in Linux With Examples In Linux, there can be multiple users (those who use/operate the system), and groups are nothing but a collection of users. Groups make it easy to manage users with the same security and access privileges. A user can be part of different groups. The 'groups' command is a powerful tool that allows ad 3 min read Like