CompTIA Linux+ (XK0-005) — Question 135

A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users’ access will be disabled once the project is over. The expiration date should be 2021-09-30. Which of the following commands will accomplish this task?

Answer options

Correct answer: A

Explanation

The correct answer is A because the '-e' option in the useradd command sets the expiration date for the user account. Options B and D do not set an expiration date, and option C is incorrect as modinfo is used for retrieving module information, not for user management.