Services and User Management

An administrator reviews this line in /etc/passwd while auditing a new user: jdoe:x:1004:1004:Jane Doe,Room 4:/home/jdoe:/bin/bash Which three statements correctly interpret the line? (Choose three.)

Choose 3 answers

Show the answer

Correct answersA. The x in the second field shows the password hash is stored in /etc/shadow.C. The primary group of the account has the GID 1004.D. The account's login shell is set to /bin/bash.

AWhy this is right: An x in the password field means the hash is kept in /etc/shadow.

BWhy not this: The fifth field is the GECOS comment with the full name and contact details; expiry is stored in /etc/shadow.

CWhy this is right: The fourth field is the primary group's GID, here 1004.

DWhy this is right: The seventh and last field is the login shell, here /bin/bash.

EWhy not this: System accounts use UIDs below 1000 on most distributions; 1004 is in the regular-user range.

The x is a placeholder for the hash kept in /etc/shadow, the fourth field is the primary GID, and the last field is the login shell. The fifth field is the GECOS comment (full name and contact details), not an expiration date, which is stored in /etc/shadow. UID 1004 is in the regular-user range, not the system range below 1000.