🌐 Linux Free Masterclass (Episode 11): Users & Groups (useradd, groupadd, and permissions setup)
How do enterprise servers handle multiple system operators securely, ensuring that users only access what they are permitted to see? Through the Linux Users and Groups model.
Here are the key points from Episode 11:
🔹 1. Understanding Users in Linux
Root User (Superuser): The ultimate system administrator with unrestricted privileges over the entire machine.
System Users: Automated internal accounts reserved for background services and applications.
Normal Users: Standard accounts assigned limited permissions to prevent accidental system-wide damage.
🔹 2. Creating and Managing Users
useradd: Creates a new user account (e.g., sudo useradd -m rahul automatically generates a home directory using the -m flag).
passwd: Sets or updates a password for a specified user (e.g., sudo passwd rahul).
userdel: Permanently removes a user account, with -r wiping their home directory along with it.
🔹 3. Groups & How to Use Them
The Group Concept: Instead of managing permissions individually for dozens of users, administrators bundle them into shared teams or departments.
Management Commands:
sudo groupadd developers creates a new group.
sudo usermod -aG developers rahul appends (-aG) the user rahul into the developers group.
🚀 Think of user and group administration like a secure corporate office: the CEO is the Root user, departments like Development or HR are Groups, and newly hired employees are individual Users granted specific access badges based on their team!

Top comments (0)