How to Manage Users in Linux
Introduction
User management is crucial for system security and access control in Linux.
Step 1: Add a New User
sudo adduser username
➡️ Creates a new user with a home directory.
Step 2: Delete a User
sudo deluser username
➡️ Removes a user account.
Step 3: Add User to a Group
sudo usermod -aG groupname username
➡️ Grants group-based permissions.
Step 4: Switch Users
su - username
➡️ Switches to another user account.
Conclusion
Managing users with adduser, deluser, and usermod ensures secure and efficient Linux administration.

Comments
Post a Comment