Skip to main content

Add User

Adding a User

bash

# Add a new user (replace 'username' with desired username)
sudo adduser username

# Or use useradd for more control
sudo useradd -m -s /bin/bash username

The adduser command is more user-friendly and will prompt you to set a password and user details. The useradd command with -m creates a home directory and -s /bin/bash sets the default shell.