nerdexam
Linux_FoundationLinux_Foundation

LFCA · Question #35

LFCA Question #35: Real Exam Question with Answer & Explanation

The correct answer is B: usermod. The usermod command, when used with the -L option, can lock a user's account in Linux, preventing login without deleting any user files or data.

Submitted by zhang_li· May 4, 2026System Administration

Question

Which of the following commands can be used to lock a user's account so that they cannot log into a Linux server without removing any files, folders, or data?

Options

  • Alock
  • Busermod
  • Cuserdel
  • Dchmod

Explanation

The usermod command, when used with the -L option, can lock a user's account in Linux, preventing login without deleting any user files or data.

Common mistakes.

  • A. There is no standard lock command for user account locking in Linux.
  • C. The userdel command is used to delete a user account, which typically involves removing their home directory and data.
  • D. The chmod command is used to change file permissions, not to lock user accounts.

Concept tested. Linux user account management (locking)

Reference. https://man7.org/linux/man-pages/man8/usermod.8.html

Topics

#User Management#Account Locking#usermod command

Community Discussion

No community discussion yet for this question.

Full LFCA PracticeBrowse All LFCA Questions