nerdexam
CompTIA

XK0-004 · Question #152

An administrator is uncomfortable allowing users to log in as root. Which of the following ensures that root logins are disallowed?

The correct answer is A. usermod -L root. Lock a user's password. This puts a '!' in front of the encrypted password, effectively disabling the password. You can't use this option with -p or -U."

Security

Question

An administrator is uncomfortable allowing users to log in as root. Which of the following ensures that root logins are disallowed?

Options

  • Ausermod -L root
  • Busermod -G root
  • Cusermod -B root
  • Dusermod -U root

How the community answered

(33 responses)
  • A
    88% (29)
  • B
    3% (1)
  • C
    3% (1)
  • D
    6% (2)

Explanation

Lock a user's password. This puts a '!' in front of the encrypted password, effectively disabling the password. You can't use this option with -p or -U."

Topics

#usermod#account lockout#root security#login restriction

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice