Crew Records
The ship's computer has accounts for the whole crew. Read /etc/passwd and /etc/group (with grep, getent and id) to answer the questions.
How it works: the terminal below is a real Linux machine running in your browser. Click it and
type. Tasks tick themselves off as you complete them; questions are answered in the box under each task.
Press Reset any time for a fresh machine. Your password on this machine (for
sudo) is student.
Hints
grep name /etc/passwd or getent passwd name shows one account.
Solution explanation
Each line of /etc/passwd is name:x:UID:GID:comment:home:shell, so getent passwd cook shows cook's home (/srv/galley) and shell (/bin/sh) at once. The last field of a line in /etc/group lists the extra members, here captain,navigator. /sbin/nologin refuses every login.
Show solution
grep navigator /etc/passwd
getent passwd cook
getent passwd captain
getent group officers
id navigator
getent passwd radar