exam questions

Exam LX0-104 All Questions

View all questions & answers for the LX0-104 exam

Exam LX0-104 topic 3 question 11 discussion

Actual exam question from CompTIA's LX0-104
Question #: 11
Topic #: 3
[All LX0-104 Questions]

What happens if the password of a user in the /etc/shadow file is prepended with the ! character?

  • A. When logging in, the user automatically gets root privileges in addition to his regular privileges.
  • B. The password is inverted which allows the user to log in with any password other than the current password.
  • C. The user is disabled and all login methods, including but not limited to password based logins, are disabled.
  • D. Upon the next log in, the user is forced to change his password.
  • E. The password becomes invalid which disables password based logins although other login methods remain usable.
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
2 years, 2 months ago
The answer is C. The user is disabled and all login methods, including but not limited to password based logins, are disabled. The ! character is used to mark the user account as disabled in the /etc/shadow file. When the password field starts with a !, the account is locked and the user is unable to log in using a password.
upvoted 1 times
linux_admin
2 years, 2 months ago
** Answer is E ** Correction: If the password field contains an asterisk (*) or exclamation point (!), the user will not be able to login to the system using password authentication. Other login methods like key-based authentication or switching to the user are still allowed.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago