File Permissions and Access Control Lists

File Permissions and Access Control Lists

Day 6

Table of contents

User Management

User management in Linux refers to the process of creating, modifying, and managing user accounts on a Linux system. It involves tasks such as creating new user accounts, assigning user privileges, managing passwords, and handling user authentication and authorization.

In Linux, each user is assigned a unique user ID (UID) and belongs to one or more user groups. User management tools and commands allow system administrators to perform various operations related to user accounts. Here are some common tasks involved in user management:

  1. Creating a User Account: The useradd command is used to create a new user account. It creates a new entry in the system's user database, assigns a unique UID, and creates a home directory for the user.

  2. Setting User Passwords: The passwd command enables you to set or change a user's password. Only the user or a privileged administrator can change passwords.

  3. Modifying User Accounts: The usermod command is used to modify user account properties such as username, home directory, default shell, UID, or group membership.

  4. Deleting User Accounts: The userdel command removes a user account from the system, including the associated files and directories. Care should be taken when deleting user accounts to avoid accidental data loss.

  5. Managing User Groups: Linux allows users to be part of one or more groups. The groupadd, groupmod, and groupdel commands are used to manage user groups, such as creating new groups, modifying group properties, or delete groups.

  6. User Privileges and Permissions: Linux uses file permissions and access control lists (ACLs) to control access to files and directories. System administrators can assign specific privileges and permissions to users and groups to control their access rights.

  7. User Authentication: Linux supports various authentication mechanisms, including passwords, SSH keys, and biometric authentication. User management includes configuring and managing authentication methods to ensure secure access to the system.

  8. User Environment: Each user in Linux has its environment, including environment variables, default shell, and personalized settings. User management involves configuring and customizing these environments based on user requirements.

  9. User Quotas: Linux provides disk quota management, allowing administrators to set limits on the amount of disk space a user or group can consume. This helps in managing disk usage and ensuring fair resource allocation.

  10. User Activity Monitoring: System administrators may need to monitor user activity for security and auditing purposes. Tools such as last, w, and who provide information about logged-in users and their activities.

  11. Read about ACL and try out the commands getfacl and setfacl , for that details please go to this blog from RedHat

Proper user management is essential for maintaining security, access control, and resource management on a Linux system. It allows administrators to define and enforce policies, manage user privileges, and ensure the integrity and confidentiality of system resources.

Thanks for your time!