nerdexam
Linux_Foundation

LFCS · Question #489

Why is /etc/shadow not world readable if the passwords are stored in an encrypted fashion?

The correct answer is A. The encrypted passwords are still subject to brute force attacks. The /etc/shadow file is not world-readable because even though passwords are cryptographically hashed, these hashes are still vulnerable to offline brute-force or dictionary attacks if exposed.

Submitted by yuki_2020· Apr 18, 2026User and Group Management

Question

Why is /etc/shadow not world readable if the passwords are stored in an encrypted fashion?

Options

  • AThe encrypted passwords are still subject to brute force attacks.
  • BThis is just for historical reasons.
  • CThere is other information in the file that needs to be kept secret.
  • DThe passwords can be decrypted by anyone with root access.

How the community answered

(49 responses)
  • A
    88% (43)
  • B
    4% (2)
  • C
    2% (1)
  • D
    6% (3)

Why each option

The `/etc/shadow` file is not world-readable because even though passwords are cryptographically hashed, these hashes are still vulnerable to offline brute-force or dictionary attacks if exposed.

AThe encrypted passwords are still subject to brute force attacks.Correct

Even though passwords in `/etc/shadow` are stored as one-way cryptographic hashes, making the file world-readable would expose these hashes to any user on the system. This exposure would allow attackers to perform offline brute-force or dictionary attacks using specialized tools, attempting to guess the original password from its hash without needing to interact with the system's authentication process.

BThis is just for historical reasons.

The restricted permissions on `/etc/shadow` are a direct security measure against password cracking, not merely a historical remnant.

CThere is other information in the file that needs to be kept secret.

While `/etc/shadow` contains other sensitive information like password aging details, the primary and most critical reason for its restricted access is the protection of password hashes from cracking attempts.

DThe passwords can be decrypted by anyone with root access.

Passwords stored in `/etc/shadow` are hashed, not encrypted, meaning they cannot be "decrypted" back to their original plaintext form by anyone, including root. Root can change passwords, but not reverse hashes.

Concept tested: /etc/shadow security principles

Topics

#Password security#File permissions#/etc/shadow#Brute force attacks

Community Discussion

No community discussion yet for this question.

Full LFCS Practice