CompTIA Linux+ XK0-006 (V8) Practice Question

During a security investigation you must immediately disable password authentication for the local account "bob". Company policy forbids changing the user's login shell or expiration date, and the passwd utility is blocked, so you must use the usermod command. The solution must keep bob's current password hash so the account can be unlocked later and must only prevent password-based logins (bob's running processes and key-based access must continue to work). Which command satisfies these requirements?

  • chage -E 0 bob

  • usermod -l bob

  • usermod -L bob

  • usermod -s /usr/sbin/nologin bob

CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot