docs(linux): wrangle content and add content links to user management (#6459)

* docs(linux): wrangle content and add content links to user management

* docs(linux): wrangle content and add content links to user management - implemented changes based on dansholds feedback

---------

Co-authored-by: Stavros Siamantas <ssiamantas@shipreality.com>
pull/6470/head
siamonas 3 months ago committed by GitHub
parent 27752cf374
commit 136484f8b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 19
      src/data/roadmaps/linux/content/107-user-management/100-create-update.md
  2. 18
      src/data/roadmaps/linux/content/107-user-management/101-user-groups.md
  3. 31
      src/data/roadmaps/linux/content/107-user-management/102-permissions.md

@ -1,17 +1,8 @@
# User Management: Create and Update Users
# User Management: Create, Update, and Delete Users
User management is an essential part of maintaining a Linux system. It consists of managing user accounts and groups, and setting permissions for them. Linux system administrators should be proficient in creating, updating and managing users to ensure system security as well as efficient use of system resources.
User management in Linux involves creating, updating, and deleting user accounts to ensure system security and efficient resource utilization. Administrators can create new users using commands like `useradd` or `adduser`, update user details such as home directory or login shell with `usermod`, and delete users using `userdel`. Effective user management leverages Linux's multi-user capabilities, maintaining a secure and organized system environment.
When creating a new user, we add a new record in the system files for that user along with other details like home directory, login shell, and password. We can create new users with ‘useradd’ or 'adduser' commands. For instance, to create a new user, you might use a command like:
Learn more from the following resources:
```bash
sudo useradd newuser
```
On the other hand, updating a user means modifying user details. It may include changing display or user name, home directory or login shell. The 'usermod' command is used for updating a user in Linux. For instance, to change the home directory for a user, you might use a command like:
```bash
sudo usermod -d /new/home/directory username
```
Managing users effectively is crucial in Linux for both system security and resource management. You can fully harness the power of Linux's multi-user characteristics through skillful user management.
- [@article@How to create, update, and delete users account on Linux](https://linuxconfig.org/how-to-create-modify-and-delete-users-account-on-linux)
- [@article@How to manage users in Linux](https://www.freecodecamp.org/news/how-to-manage-users-in-linux/)

@ -1,16 +1,8 @@
# Linux User Groups
# User Management: Users & Groups
In Linux, a User Group is a mechanism used to manage the system’s users and permissions. It represents a collection of users, designed specifically to simplify system administration. Each user in Linux is a part of one or more groups. These groups are primarily used for determining access rights to various system resources, including files, directories, devices, etc.
User management in Linux uses user groups to manage system users and permissions efficiently. A user group is a collection of users that simplifies system administration by determining access rights to resources like files and directories. Each user belongs to one or more groups, allowing administrators to grant specific privileges without full superuser access. Commands like `groupadd`, `groupdel`, `groupmod`, `usermod`, and `gpasswd` are used to manage groups. Proper group management is crucial for a secure and organized system environment. For detailed instructions, refer to resources on managing Linux groups.
Understanding and appropriately managing user groups in Linux is crucial for overall system security. It allows the administrator to grant certain privileges to a specific set of users, without granting them complete superuser or 'root' access.
Learn more from the following resources:
One can check a user’s group affiliations using the `groups` command, while the `/etc/group` file contains a list of all groups on the system.
```bash
groups [username]
cat /etc/group
```
At times, it becomes necessary to add or remove users from groups, modifications to group properties or even the creation and deletion of groups altogether. These operations can typically be performed using the `groupadd`, `groupdel`, `groupmod`, `usermod`, and `gpasswd` commands.
Overall, user groups are an essential component of Linux User Management, helping to maintain a secure and organized system environment.
- [@article@How to create, delete, and modify groups in Linux](https://www.redhat.com/sysadmin/linux-groups)
- [@article@How to manage groups on Linux](https://linuxconfig.org/how-to-manage-groups-on-linux)

@ -1,29 +1,8 @@
# Linux: Permissions Under User Management
# User Management: Managing Permissions
Linux, like all Unix-like systems, is a multi-user system, meaning it can be used by multiple users at one time. As such, it has a comprehensive system for managing permissions for these users. These Linux permissions dictate who can access, modify, and execute files and directories.
User management in Linux involves managing permissions to control who can access, modify, and execute files and directories. Permissions are categorized into read, write, and execute types and can be set for the file owner (user), the owning group, and others. Commands like `chmod`, `chown`, and `chgrp` are used to view and manipulate these permissions. Properly managing permissions is crucial for maintaining system security and organization. For more detailed instructions, refer to resources on Linux file permissions.
Permissions are categorized into three types:
Learn more from the following resources:
1. **Read permission**: Users with read permissions can view the contents of the file.
2. **Write permission**: Users with write permissions can modify the contents of the file or directory.
3. **Execute permission**: Users with execute permissions can run a file or traverse a directory.
These permissions can be set for three kinds of entities:
1. **User**: The owner of the file or directory.
2. **Group**: The user group that owns the file or directory.
3. **Others**: Other users who are neither the owner of the file, nor belong to the group that owns the file.
To set these permissions, Linux uses a system of permission bits. This information can be viewed and manipulated using commands such as `chmod`, `chown`, and `chgrp`.
```bash
chmod 755 my_file
chown new_owner my_file
chgrp new_group my_file
```
In the example above, `chmod 755 my_file` sets permissions so that the user can read, write, and execute (7), while the group and others can read and execute (5). The `chown` and `chgrp` commands change the owner and group of `my_file`, respectively.
- [@article@Linux file permissions explained](https://www.redhat.com/sysadmin/linux-file-permissions-explained)
- [@video@Linux file permissions in 5 minutes](https://www.youtube.com/watch?v=LnKoncbQBsM)
Loading…
Cancel
Save