LFCA · Question #1
In which file are system and user account passwords stored?
The correct answer is C. /etc/shadow. System and user account passwords, specifically their encrypted hashes, are securely stored in the /etc/shadow file on Linux systems.
Question
In which file are system and user account passwords stored?
Options
- A/etc/passwd
- B/etc/login.defs
- C/etc/shadow
- D/etc/secure
How the community answered
(34 responses)- A3% (1)
- B3% (1)
- C88% (30)
- D6% (2)
Why each option
System and user account passwords, specifically their encrypted hashes, are securely stored in the `/etc/shadow` file on Linux systems.
`/etc/passwd` stores user account information like username, UID, GID, home directory, and shell, but typically contains an 'x' in the password field, indicating that the actual password hash is in `/etc/shadow`.
`/etc/login.defs` defines system-wide password policies, such as minimum password length and age, but does not store individual user passwords.
The `/etc/shadow` file stores encrypted password hashes, expiration information, and other security-related details for user accounts. This file is only readable by the root user, ensuring the confidentiality of password hashes and protecting against unauthorized access.
`/etc/secure` is not a standard Linux file for storing user passwords; it might refer to system security configurations in some contexts but not direct password storage.
Concept tested: Linux password storage location
Source: https://man7.org/linux/man-pages/man5/shadow.5.html
Topics
Community Discussion
No community discussion yet for this question.