Operating Systems
A technician needs to check which login shell is assigned to the user account "mlopez" on a Linux workstation. Which file lists this setting for each account?
Show the answer
Correct answerC. /etc/passwd
AWhy not this: This file maps hostnames to IP addresses, not user account details.
BWhy not this: This file defines which filesystems are mounted at boot, not account settings.
CWhy this is right: Each line holds the account's username, UID, GID, home directory and login shell, and the file is world-readable.
DWhy not this: This file holds hashed passwords and aging data, not the login shell field.
/etc/passwd holds one line per account, including its UID, GID, home directory and login shell. /etc/shadow stores only password hashes and aging data, not the shell.