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

Posted by Nathalie on Aug 13, 2026 at 10:56 AM

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

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


Get Premium 102-500 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
18 comments · newest first
HI
Hildegarde 2 days ago
I think it's B.
AN
Anissa 7 days ago
This question is tricky.
ZO
Zona 12 days ago
D could work too, but it's less common.
AL
Alexia 17 days ago
C is safer, but B is more effective.
GL
Glenn 23 days ago
I prefer C.
DO
Dottie 28 days ago
Because it directly denies access.
DE
Denise 1 month ago
Why B?
DO
Dottie 1 month ago
I think it's B.
LE
Leota 1 month ago
This question is tricky.
IS
Isabelle 2 months ago
D seems like a good choice too, but not sure if it's the best.
TH
Theola 2 months ago
Definitely not A, that allows them!
WE
Wei 2 months ago
Wait, can you really deny users with option E? Sounds odd.
EL
Eleonore 2 months ago
I think B is correct, not C.
LA
Launa 2 months ago
Option C is the way to go!
LO
Loren 2 months ago
I vaguely remember that the /etc/atd.conf file has a deny section, so maybe that's the correct option for this scenario.
RE
Rebecka 3 months 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.
RA
Rasheeda 3 months 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.
DA
Dacia 3 months 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.
0/2000 characters

Save Cancel