nerdexam
LPI

010-150 · Question #46

Which one of the following statements concerning Linux passwords is true?

The correct answer is D. Passwords are only stored in encrypted form. Linux stores passwords in encrypted (hashed) form, never in plaintext, and there is no master password that can decrypt them.

Security and File Permissions

Question

Which one of the following statements concerning Linux passwords is true?

Options

  • AAll passwords can be decrypted using the system administrator's master password.
  • BPasswords may never start with a non-letter.
  • CUsers cannot change their password once it has been set.
  • DPasswords are only stored in encrypted form.
  • EPasswords may be at most six characters long.

How the community answered

(50 responses)
  • A
    4% (2)
  • B
    12% (6)
  • C
    2% (1)
  • D
    80% (40)
  • E
    2% (1)

Why each option

Linux stores passwords in encrypted (hashed) form, never in plaintext, and there is no master password that can decrypt them.

AAll passwords can be decrypted using the system administrator's master password.

Linux uses one-way hashing, not encryption, so there is no master password or decryption mechanism that can recover plaintext passwords.

BPasswords may never start with a non-letter.

Linux passwords have no restriction preventing them from starting with non-letter characters; special characters and digits are commonly allowed and encouraged.

CUsers cannot change their password once it has been set.

Users can change their own passwords at any time using the passwd command, subject to any policy restrictions set by the administrator.

DPasswords are only stored in encrypted form.Correct

Linux stores passwords as one-way cryptographic hashes (historically in /etc/passwd, now in /etc/shadow). Because hashing is a one-way function, the original plaintext password cannot be recovered - even by root. Authentication works by hashing the input and comparing it to the stored hash.

EPasswords may be at most six characters long.

Modern Linux systems support passwords well beyond six characters; older DES-based limits have been replaced by stronger hashing algorithms like SHA-512 that support long passphrases.

Concept tested: Linux password storage and hashing security

Source: https://linux.die.net/man/5/shadow

Topics

#password storage#encryption#/etc/shadow#authentication

Community Discussion

No community discussion yet for this question.

Full 010-150 Practice