LX0-104 · Question #30
To prevent a specific user from scheduling tasks with at, what should the administrator do?
The correct answer is C. Add the specific user to /etc/at.deny file.. To prevent a specific user from scheduling tasks with the at command, the administrator should add that user's name to the /etc/at.deny file.
Question
Options
- AAdd the specific user to /etc/at.allow file.
- BAdd the specific user to [deny] section in the /etc/atd.conf file.
- CAdd the specific user to /etc/at.deny file.
- DAdd the specific user to nojobs group.
- ERun the following: atd --deny [user].
How the community answered
(41 responses)- A2% (1)
- C90% (37)
- D2% (1)
- E5% (2)
Why each option
To prevent a specific user from scheduling tasks with the `at` command, the administrator should add that user's name to the /etc/at.deny file.
Adding the user to /etc/at.allow would grant them permission to use `at`, which is the opposite of the desired action.
/etc/atd.conf is not a standard file for configuring user access to the `at` command, nor does it typically have a `[deny]` section for individual users.
The /etc/at.deny file lists users who are explicitly prohibited from using the `at` command to schedule one-time tasks. If a user's name is present in this file, they will be unable to use `at`.
There is no standard 'nojobs' group in Linux that specifically controls access to the `at` command.
`atd` is the daemon responsible for executing `at` jobs and does not have a `--deny` option to restrict user access on the fly.
Concept tested: at command access control
Source: https://man7.org/linux/man-pages/man1/at.1.html
Topics
Community Discussion
No community discussion yet for this question.