nerdexam
CompTIA

LX0-104 · Question #484

How can you verify the integrity of the /etc/passwd file?

The correct answer is B. pwck. The pwck command is used to check the integrity and syntax of the /etc/passwd and /etc/shadow files.

Administrative Tasks

Question

How can you verify the integrity of the /etc/passwd file?

Options

  • Apwchk
  • Bpwck
  • Cchkpw
  • Dckpw

How the community answered

(49 responses)
  • A
    2% (1)
  • B
    92% (45)
  • C
    6% (3)

Why each option

The pwck command is used to check the integrity and syntax of the /etc/passwd and /etc/shadow files.

Apwchk

pwchk is not a standard command for checking password file integrity.

BpwckCorrect

The pwck (password check) command examines the /etc/passwd and /etc/shadow files for correctness, such as valid user IDs, group IDs, home directories, and shell paths. It reports any inconsistencies or errors found in these critical system files.

Cchkpw

chkpw is not a standard command for checking password file integrity.

Dckpw

ckpw is not a standard command for checking password file integrity.

Concept tested: Verify passwd file integrity

Source: https://man7.org/linux/man-pages/man8/pwck.8.html

Topics

#password file integrity#pwck#/etc/passwd

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice