Table of Contents
This updated guide examines Type: How to Manage Users in Linux and organizes the essential facts, background, and practical takeaways in clear American English.
Method 1of 4:
Adding Users
Typeadduser -d /home/users/into the command line.
- Example: adduser bob -d /home/users/bob
Typepasswdand press return to set a password for the new user.
- Type the new password.
- Confirm the password.
Method 2of 4:
Modifying Users
Changing Passwords
Typepasswdin the command line.
Enter the new password for the user.
- Note: the cursor will not move however your password is being typed.
Confirm the new password.
Method 3of 4:
Removing Users
Typeuserdelinto the command line to delete a user.
- Example: userdel bob
Typeuserdel -rto also delete their home folder and files.
Method 4of 4:
Sudo and Su
Terms
- sudo: Switch User and Do
- Executes a command as root or another use while maintaining your current session.
- su: Switch User
- Switches your session to another user.

- Switches your session to another user.
Usage
Typesudobefore a command to execute the command as the root user. You will be prompted for a password.
- Example: sudo apt-get install telnet
Typesudobefore a command to execute the command as another user on the system. You will be promoted for that users password.
- Example: sudo bob telnet localhost 22
Typesuto switch your command line session to the root user. You will be promoted for a password.
- Type logout to switch back.
Typesuto switch your command line session to another user. You will be promoted for their password.
- Type logout to switch back.
FAQ
What is Type: How to Manage Users in Linux about?
It provides a structured overview of type, explains the main context, and highlights practical takeaways for readers.
Why does this topic matter?
Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.
How should readers use this information?
Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.
Reader Comments 0
Sign in with email or Google to join the discussion.