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.
Question
Options
- Apwchk
- Bpwck
- Cchkpw
- Dckpw
How the community answered
(55 responses)- A2% (1)
- B91% (50)
- C2% (1)
- D5% (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.
`pwchk` is not a standard command for verifying the integrity of `/etc/passwd`.
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.
`chkpw` is not a standard command for verifying the integrity of `/etc/passwd`.
`ckpw` is not a standard command for verifying the integrity of `/etc/passwd`.
Concept tested: /etc/passwd file integrity check
Topics
Community Discussion
No community discussion yet for this question.