Primary & secondary groups
Every Linux user has one primary group and may belong to multiple supplementary groups for shared access.
Linux · Group Management
Linux · Lesson 5
Manage local groups and permissions in Linux. Add and modify groups with commands. User membership control. Enterprise security best practices.
Groups allow Linux administrators to manage permissions for multiple users at the same time. Instead of assigning permissions individually, you assign access to a group and add users into that group.
This approach simplifies administration, improves security and makes large Linux environments easier to manage.
Every Linux user has one primary group and may belong to multiple supplementary groups for shared access.
Linux file and directory permissions often rely on groups to control read, write and execute access.
Groups make it easy for teams to collaborate safely inside shared directories and application environments.
Practice the following commands inside your Linux VM or lab server to understand how groups affect permissions and access control.
Start by inspecting /etc/group to understand existing Linux groups and memberships.
Use groupadd to create a new application or team group with a custom GID if needed.
Use usermod -aG to safely append a user to additional groups without removing existing memberships.
Switch to the user account and verify group membership from the user’s perspective.
Assign group ownership and permissions so multiple users can collaborate safely.
Use groupmod to rename groups and groupdel to remove unused ones.
projectx.devuser and opsuser to the group./projects/projectx and configure proper ownership and permissions.In the next lesson, you will learn Linux file permissions and how ownership, chmod and special permissions work together.