nerdexam
Linux_Foundation

LFCS · Question #484

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

The correct answer is B. pwck. The pwck command is used on Linux systems to verify the integrity and correct format of entries in the /etc/passwd and /etc/shadow files.

Submitted by akirajp· Apr 18, 2026User and Group Management

Question

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

Options

  • Apwchk
  • Bpwck
  • Cchkpw
  • Dckpw

How the community answered

(55 responses)
  • A
    2% (1)
  • B
    91% (50)
  • C
    2% (1)
  • D
    5% (3)

Why each option

The `pwck` command is used on Linux systems to verify the integrity and correct format of entries in the `/etc/passwd` and `/etc/shadow` files.

Apwchk

`pwchk` is not a standard command for verifying the integrity of `/etc/passwd`.

BpwckCorrect

The `pwck` command (password check) is a standard utility on Unix-like systems specifically designed to verify the integrity and correct format of entries in the `/etc/passwd` and `/etc/shadow` files, reporting any syntax errors or inconsistencies.

Cchkpw

`chkpw` is not a standard command for verifying the integrity of `/etc/passwd`.

Dckpw

`ckpw` is not a standard command for verifying the integrity of `/etc/passwd`.

Concept tested: /etc/passwd file integrity check

Topics

#File Integrity#User Management#pwck command#passwd file

Community Discussion

No community discussion yet for this question.

Full LFCS Practice