>_ IzzyLab

Topic breakdown

In Linux every person and every service has an account of its own — a user. The list of users lives in the file /etc/passwd, one line each: name, number (UID), home directory and shell — the program that takes commands after login (usually /bin/bash).

Users are created by useradd (it needs root). On its own it only adds a line to /etc/passwd; everything else is switched on with flags:

useradd -m bob           # and create /home/bob right away
id bob                   # check that the user exists

What's checked

  1. User anna created
  2. Home directory /home/anna created and owned by anna
  3. The account has /home/anna and /bin/bash

What it looks like