Crew Records

Linux lab Beginner 6 tasks 10 points

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.

student@vulntech:~ Starting…
Getting your Linux machine ready…
The first start downloads about 20 MB. After that your browser keeps it, and labs start in a moment.

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
HOME LEARN COMMUNITY DASHBOARD