Preventing a Specific User from Scheduling Tasks with at | LFCS Exam Answer

Preventing a Specific User from Scheduling Tasks with at

Question

To prevent a specific user from scheduling tasks with at, what should the administrator do?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

C

The correct answer is C. Add the specific user to /etc/at.deny file.

Explanation: The at command in Linux allows a user to schedule a task to run at a specified time in the future. To prevent a specific user from using the at command, the system administrator should add the user to the /etc/at.deny file. This file lists users who are not allowed to use the at command.

Option A is incorrect because the /etc/at.allow file lists users who are allowed to use the at command. Adding the user to this file would not prevent them from using the at command.

Option B is incorrect because there is no [deny] section in the /etc/atd.conf file. Even if such a section existed, adding the user to it would not prevent them from using the at command.

Option D is incorrect because there is no nojobs group in Linux. Even if such a group existed, adding the user to it would not prevent them from using the at command.

Option E is incorrect because the atd --deny command is not a valid command. There is no --deny option for the atd command.

Therefore, the correct answer is to add the specific user to the /etc/at.deny file.