Lesson 17 / 29

Users

Linux is multi-user by design.

A multi-user system

Linux was built for many people (or services) to use one machine safely, each with their own account, home directory, and permissions.

Creating a user

useradd creates an account, passwd sets its password, userdel removes it.

sudo useradd -m bob        # -m creates a home directory
sudo passwd bob             # set bob's password
sudo userdel -r bob         # remove bob + his home dir