>_ IzzyLab

Topic breakdown

A user in Linux is a line in /etc/passwd: name, UID, GID, description, home directory and login shell. useradd is a low-level tool: anything not set by options it takes from /etc/default/useradd, and by default it doesn't create the home directory. So when you create an account you specify what you need right away: the flag that creates $HOME (copying the templates from /etc/skel) and the login shell. getent passwd is a handy way to check.

What's checked

  1. user lena created
  2. home directory /home/lena created
  3. login shell is /bin/bash

What it looks like