nerdexam
CompTIA

LX0-104 · Question #691

How do shadow passwords improve the password security in comparison to standard passwd passwords?

The correct answer is E. Regular users do not have access to the password hashes of shadow passwords.. Shadow passwords enhance security by storing password hashes in /etc/shadow, a file only readable by the root user, thus preventing regular users from accessing them.

Security

Question

How do shadow passwords improve the password security in comparison to standard passwd passwords?

Options

  • AShadow passwords are stored in plain text and can be checked for weak passwords.
  • BEvery shadow password is valid for 45 days and must be changed afterwards.
  • CThe system's host key is used to strongly encrypt all shadow passwords.
  • DShadow passwords are always combined with a public key that has to match the user's private
  • ERegular users do not have access to the password hashes of shadow passwords.

How the community answered

(35 responses)
  • B
    3% (1)
  • C
    3% (1)
  • D
    9% (3)
  • E
    86% (30)

Why each option

Shadow passwords enhance security by storing password hashes in `/etc/shadow`, a file only readable by the root user, thus preventing regular users from accessing them.

AShadow passwords are stored in plain text and can be checked for weak passwords.

Shadow passwords are not stored in plain text; they are stored as one-way cryptographic hashes, which is a fundamental aspect of their security.

BEvery shadow password is valid for 45 days and must be changed afterwards.

Password validity periods are configurable policy settings managed by tools like `chage` and are not an inherent mechanism by which shadow passwords improve security over standard `passwd` entries.

CThe system's host key is used to strongly encrypt all shadow passwords.

Shadow passwords utilize cryptographic hashing algorithms to create one-way hashes; they are not encrypted with the system's host key.

DShadow passwords are always combined with a public key that has to match the user's private

Shadow passwords deal with password hashes for traditional authentication and are not directly combined with public/private key pairs, which are used for other authentication methods like SSH.

ERegular users do not have access to the password hashes of shadow passwords.Correct

Shadow passwords improve security because the password hashes are moved from the world-readable `/etc/passwd` file to `/etc/shadow`, which has restricted permissions allowing only the root user to read it. This crucial change prevents unprivileged users from accessing and potentially cracking other users' password hashes, significantly bolstering system security against offline brute-force or dictionary attacks.

Concept tested: Shadow password security benefits

Source: https://man7.org/linux/man-pages/man5/shadow.5.html

Topics

#shadow passwords#password security#/etc/shadow#password hashes

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice