Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
User Groups | Users, Roles and The Permissions
Linux Basics
course content

Зміст курсу

Linux Basics

Linux Basics

1. About Linux
2. Virtual Machine
3. Fundamental Skills
4. Users, Roles and The Permissions

book
User Groups

Understanding how to manage user groups on your Linux system can add structure and organization to user management, proving to be a valuable skill. Creating user groups and effectively managing them enables you to control access to files and resources on your server or computer efficiently. This becomes particularly crucial when working in teams or on projects that require data sharing and security. In this section, we will delve into the process of creating user groups, adding users to them.

This command creates a new group with the name <mygroup>.

This command changes the group of the user <username> to the specified group <mygroup>. It is used to assign a user to a specific group.

This command shows the groups that the user <username> belongs to. It helps to check which groups a specific user is a member of.

This command deletes the group with the name <mygroup>. It is used to remove a group if it is no longer needed.

These commands allow system administrators to easily manage user groups and assign them access rights to various resources and files in the system.

Task

Users of the system need to be divided into two groups: "developers" and "testers". Create both groups using the sudo groupadd command, then assign a random user to the "developers" group using the sudo usermod -g command. Display the list of groups to which this user now belongs using the groups command.

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 4. Розділ 3
We're sorry to hear that something went wrong. What happened?
some-alt