>_ IzzyLab

Topic breakdown

A Linux account is a line in /etc/passwd: name, UID, primary group, home directory and shell. The directory on disk is a separate thing: the low-level useradd only records its path, and creates the directory (copying the templates from /etc/skel into it) only with a separate flag. So after creating a user, check both the entry (id, getent passwd) and the directory itself with the right owner.

What's checked

  1. user anna created
  2. directory /home/anna exists
  3. /home/anna is anna's home directory and belongs to her

What it looks like