Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 102-500 Exam - Topic 7 Question 124 Discussion

To prevent a specific user from scheduling tasks with at, what should the administrator do?
C) Add the specific user to /etc/at.deny file.
A) Add the specific user to /etc/at.allow file.
B) Add the specific user to [deny] section in the /etc/atd.conf file.
D) Add the specific user to nojobs group.
E) Run the following: atd --deny [user].

LPI 102-500 Exam - Topic 7 Question 124 Discussion

Actual exam question for LPI's 102-500 exam
Question #: 124
Topic #: 7
[All 102-500 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: C

The /etc/at.deny file is a file that contains a list of users who are not allowed to use the at command to schedule jobs. If the file exists, any user who is not in the /etc/at.allow file and is in the /etc/at.deny file will be denied access to the at command. To prevent a specific user from scheduling tasks with at, the administrator can simply add the user's name to the /etc/at.deny file. For example, to prevent the user bob from using the at command, the administrator can use the following command:

echo ''bob'' | sudo tee -a /etc/at.deny

The other options are not correct. The /etc/at.allow file is a file that contains a list of users who are allowed to use the at command. Adding a user to this file will not prevent them from scheduling tasks with at. The /etc/atd.conf file is a configuration file for the at daemon, which does not have a [deny] section. Adding a user to this file will not affect their access to the at command. The nojobs group is not a predefined group in Linux, and adding a user to this group will not prevent them from scheduling tasks with at. The atd command does not have a --deny option, and running this command will not prevent a user from scheduling tasks with at.Reference:

at Command in Linux with Examples - GeeksforGeeks

How to Use the Linux at Command {9 Examples} - phoenixNAP

at(1) - Linux man page


Contribute your Thoughts:

0/2000 characters
Isabelle
3 days ago
D seems like a good choice too, but not sure if it's the best.
upvoted 0 times
...
Theola
8 days ago
Definitely not A, that allows them!
upvoted 0 times
...
Wei
14 days ago
Wait, can you really deny users with option E? Sounds odd.
upvoted 0 times
...
Eleonore
19 days ago
I think B is correct, not C.
upvoted 0 times
...
Launa
24 days ago
Option C is the way to go!
upvoted 0 times
...
Loren
29 days ago
I vaguely remember that the /etc/atd.conf file has a deny section, so maybe that's the correct option for this scenario.
upvoted 0 times
...
Rebecka
1 month ago
I feel like the answer might be to add the user to the nojobs group, but I need to double-check that with our practice questions.
upvoted 0 times
...
Rasheeda
1 month ago
I remember something about the /etc/at.allow file, but I can't recall if adding the user there would actually prevent them from using at.
upvoted 0 times
...
Dacia
1 month ago
I think we need to add the user to the /etc/at.deny file, but I'm not completely sure if that's the right approach.
upvoted 0 times
...

Save Cancel