QuestionQ166

Users and Groups

Which action should an administrator take to prevent one particular user from being able to schedule jobs using the at command?

  • A Add the specific user to /etc/at.allow file.
  • B Add the specific user to [deny] section in the /etc/atd.conf file.
  • C Add the specific user to /etc/at.deny file.
  • D Add the specific user to nojobs group.
  • E Run the following: atd --deny [user].
Explanation

The at daemon consults /etc/at.allow and /etc/at.deny to determine which users may schedule jobs with at. If /etc/at.allow exists, only the users listed there are permitted, and everyone else is denied. If /etc/at.allow does not exist, /etc/at.deny is checked instead: any username listed in /etc/at.deny is blocked from using at, while all other users retain access. Therefore, to block a specific user without restricting all other users, the administrator must add that username to /etc/at.deny.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!