nerdexam
Linux_Foundation

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.

Submitted by chiamaka_o· May 4, 2026System Administration

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)
  • A
    3% (1)
  • B
    3% (1)
  • C
    88% (30)
  • D
    6% (2)

Why each option

System and user account passwords, specifically their encrypted hashes, are securely stored in the `/etc/shadow` file on Linux systems.

A/etc/passwd

`/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`.

B/etc/login.defs

`/etc/login.defs` defines system-wide password policies, such as minimum password length and age, but does not store individual user passwords.

C/etc/shadowCorrect

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.

D/etc/secure

`/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

#User management#Password security#Linux files#Account management

Community Discussion

No community discussion yet for this question.

Full LFCA Practice