Managing Users in Linux Systems✅

Jun 3, 2025

Adding and Removing Users in Linux

Adding a New User

  • Command: sudo user add <username>
    • Example: sudo user add juan
    • Functionality: Sets up basic configurations for the user and creates a home directory.

Verifying User Creation

  • Check the user list to ensure the user was created successfully.

Setting Passwords

  • Combine with password command to prompt the user to change their password on first login.

Removing a User

  • Command: sudo user delete <username>
    • Example: sudo user delete juan
    • Functionality: Removes the user from the system.

Verification

  • Check the user list to confirm the user has been removed.