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.
Question
Options
- Apwchk
- Bpwck
- Cchkpw
- Dckpw
How the community answered
(49 responses)- A2% (1)
- B92% (45)
- C6% (3)
Why each option
The pwck command is used to check the integrity and syntax of the /etc/passwd and /etc/shadow files.
pwchk is not a standard command for checking password file integrity.
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.
chkpw is not a standard command for checking password file integrity.
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
Community Discussion
No community discussion yet for this question.