In Linux, where is the user password stored?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. /etc/passwd
Explanation
User account information, including (historically) the password field, is kept in the system file /etc/passwd, which every process can read since it also stores usernames, UID/GID and shell information needed for login and lookups. On modern distributions the actual password hash is moved out to the root-readable-only /etc/shadow for security, leaving just a placeholder in /etc/passwd, but at the level this question is pitched, /etc/passwd is the standard textbook answer. The other three paths are not real system files — there is no /etc/password or any /root/password(s) file in a standard Linux installation. Hence option (iii) is correct.More System Software and Operating System questions
- Indexed (grouped) allocation is useful because: (A) It supports both sequential and direct access. (B) The entire block is available for da…
- Which of the following statements are CORRECT? (A) A process always checks the state of the currently executing process to enter the critic…
- Match List I with List IIList I List II (a) LRU (I) A page is written to secondary memory only when it has been selected for replacement (b…
- Arrange the following levels of interrupt protection within the Linux kernel in order of increasing priority. (a) User-mode programs (b) Bo…
- Statement (I): A thread is a dispatchable unit of work that does not execute sequentially and is not interruptible. Statement (II): It is n…
- Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R. Assertion A: I/O protection is ensure…