nerdexam
CompTIA

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.

Administrative Tasks

Question

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

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)
  • A
    2% (1)
  • C
    90% (37)
  • D
    2% (1)
  • E
    5% (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.

AAdd the specific user to /etc/at.allow file.

Adding the user to /etc/at.allow would grant them permission to use `at`, which is the opposite of the desired action.

BAdd the specific user to [deny] section in the /etc/atd.conf file.

/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.

CAdd the specific user to /etc/at.deny file.Correct

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`.

DAdd the specific user to nojobs group.

There is no standard 'nojobs' group in Linux that specifically controls access to the `at` command.

ERun the following: atd --deny [user].

`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

#at command#scheduling#access control#/etc/at.deny

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice