Links

Users and Groups

Understanding Linux users and groups.

Users

Creating Users

# Create a user and immediately set the password
sudo useradd sshuser && sudo passwd sshuser
​
# Create a user with a home directory (-m) and immediately set the password
sudo useradd -m sshuser && sudo passwd sshuser
​
# If you need to create a home directory for an existing user that doesn't have one
sudo mkhomedir_helper sshuser