User and User Groups in Linux, groupslinux
This document describes some common commands for Linux users and user groups.
Related configuration files:
- /Etc/group stores all user group information in the current system
- /Etc/gshadow stores passwords of all user groups in the current system
- /Etc/passwd stores information of all users in the current system
- /Etc/shadow stores password information of all users in the current system
The content format of the configuration file is described as follows:
Note: When you use cat/etc/group for viewing, you will find that some groups do not display the user list at last. The following code shows how to view the User Name List of a user group.
Add, modify, and delete user groups User addition, modification, and deletion Passwd command Main Group & affiliated group
A user can belong to multiple user groups at the same time (one master group and multiple affiliated groups must be included)
View commands Set User File Access Permissions Other commands
Links to concepts about users and user groups