User Name: A unique name that identifies the user. User ID (UID): A numerical number assigned to the user. Group Number: The primary group code of the user. Home Directory: The path where the user’s files are stored. Shell: The command-lineinterfaceline used by the user.
Conclusion In closing analysis, comprehending Linux users is crucial for efficient system governance and security. By mastering user management, you can restrict access to system assets, enforce protection rules, and maintain a stable and efficient Linux atmosphere. This article is part of “La Biblia De Linux” series by Hector Facundo Arena, offering extensive guidance on Linux governance and security. Users - La Biblia De Linux - Hector Facundo Arena
Users - La Biblia De Linux - Hector Facundo Arena In the Unix software system, people are a fundamental notion that plays a crucial part in OS administration and protection. Understanding how to handle accounts is essential for any OS user, whether you’re a beginner or an experienced manager. In this post, we’ll dive into the world of OS accounts, exploring their classes, parts, and control methods. This is a comprehensive tutorial, part of “La Biblia De Linux” series by Hector Facundo Arena. What are Unix Users? In Unix, a user is an element that works with the software. Users can be beings beings or OS threads that need access to software components. Each user has a unique ID, known as a User ID, which is used to identify them from other users. Types of Linux People There are two primary types of people in Linux: User Name: A unique name that identifies the user
sudo useradd -make -s /bin/bash newuser This command makes a new user named “newuser” with a home directory (-m) and configures the default shell to /bin/bash (-set). Changing a User To modify an existing user, you can use the changeuser command: sudo changeuser -appendG administrators existinguser This command appends the “existinguser” to the “sudo” collection, granting them administrative permissions. Deleting a User To remove a user, you can use the deleteuser command: sudo removeuser -r deleteduser This command removes the user “deleteduser” and removes their user directory (-r). User Groups In Linux, groups are used to manage users and regulate permissions. A collection is a set of users that own common permissions and access to data. Adding a New Collection To make a new collection, you can use the creategroup command: sudo creategroup newgroup This command adds a new group named “newgroup”. Appending a User to a Set Home Directory: The path where the user’s files
To append a user to a group, you can use the usermod command: sudo usermod -addG newgroup username This command appends the “existinguser” to the “newgroup” set. Account Authorizations Authorization determine what operations a user can perform on the server. Linux uses a security mechanism based on access controllistspermissions. Familiarity Permissions Permissions are displayed by a set of letters: -rw-r--r-- 1 user collection 1234 Jan 1 12:00 document.txt In this illustration: