nerdexam
Exams010-160Questions#40
LPI

010-160 · Question #40

010-160 Question #40: Real Exam Question with Answer & Explanation

The correct answer is C: /etc/passwd. The line root:x:0:0::/root:/bin/bash uses the colon-delimited format unique to /etc/passwd, which stores username, password placeholder, UID, GID, GECOS, home directory, and login shell.

Question

The following line is found in which system file? root:x:0:0::/root:/bin/bash

Options

  • A/etc/user.conf
  • B/etc/shadow
  • C/etc/passwd
  • D/usr/bin/shadow
  • E/etc/password

Explanation

The line root:x:0:0::/root:/bin/bash uses the colon-delimited format unique to /etc/passwd, which stores username, password placeholder, UID, GID, GECOS, home directory, and login shell.

Common mistakes.

  • A. /etc/user.conf is not a standard Linux system file and does not store the colon-delimited user account database.
  • B. /etc/shadow stores hashed passwords and account aging data in a different multi-field format and is not the file that contains shell or home directory information.
  • D. /usr/bin/shadow does not exist as a standard Linux system file - the shadow password file is located at /etc/shadow.
  • E. /etc/password does not exist as a standard Linux system file - the correct filename is /etc/passwd.

Concept tested. Linux /etc/passwd file format and user account storage

Reference. https://man7.org/linux/man-pages/man5/passwd.5.html

Community Discussion

No community discussion yet for this question.

Full 010-160 Practice