>_ IzzyLab

Topic breakdown

/etc/passwd is a plain-text account database where each line describes one user and the fields are separated by colons: name:x:UID:GID:description:home_directory:shell. To pull a specific column out of such tabular data, there are tools that work by delimiter: you set the separator character and the field number, and only that field remains in the output. The result is redirected to a file with the > operator.

What's checked

  1. root is in the list
  2. line count matches /etc/passwd

What it looks like