102-500 · Question #110
How can a specific user be prevented from scheduling tasks with at?
The correct answer is D. By adding the specific user to the /etc/at.deny file. Adding a user to /etc/at.deny explicitly blocks that user from submitting jobs via the at command - when the at daemon checks permissions, any username listed in this file is refused scheduling rights while all other users remain unaffected. Why the distractors are wrong: A is…
Question
Options
- ABy adding the specific user to the /etc/at.allow file.
- BBy adding the specific user to the [deny] section in the /etc/atd.conf file.
- CBy adding the specific user to the nojobs group.
- DBy adding the specific user to the /etc/at.deny file.
- EBy executing the atd --deny [user] command.
How the community answered
(34 responses)- A9% (3)
- B6% (2)
- C3% (1)
- D82% (28)
Explanation
Adding a user to /etc/at.deny explicitly blocks that user from submitting jobs via the at command - when the at daemon checks permissions, any username listed in this file is refused scheduling rights while all other users remain unaffected.
Why the distractors are wrong:
- A is the opposite:
/etc/at.allowis a whitelist - only users listed there can useat, so adding someone to it grants access, not denies it. - B is fabricated:
/etc/atd.confwith a[deny]section does not exist;ataccess control is handled entirely through the two flat files, not a config file with sections. - C is fictional: there is no
nojobsgroup in Linux that interacts with theatsubsystem. - E is invalid syntax:
atdis the daemon process and accepts no--denyflag; it has no runtime user-management interface.
Memory tip: Think of the two files as a bouncer's lists - at.allow is the VIP guest list (only listed names get in), and at.deny is the banned list (listed names are turned away). To block one specific person without restricting everyone else, put them on the banned list (at.deny).
Topics
Community Discussion
No community discussion yet for this question.