Home » LPI » 117-201 » How can you prevent anyone from scheduling an at job?
Several of your users have been scheduling large at jobs to run during peak load times. How can you prevent anyone from scheduling an at job?
A. Delete the file /etc/at.deny
B. Create an empty file called /etc/at.deny
C. Create two empty files: /etc/at.deny and /etc/at.allow
D. Create an empty file called /etc/at.allow
Correct Answer: D
Explanation/Reference:
Explanation: The /etc/at.allow and the /etc/at.deny files are used to control who is allowed to run the ‘at’ command. If the file /etc/at.allow exists, only usernames mentioned in it are allowed to use the ‘at’ command, and the /etc/at.deny file is ignored.
Reference: http://ccrma-www.stanford.edu/planetccrma/man/man5/at.deny.5.html
Incorrect Answers
A:The /etc/at.allow file is read before the /etc/at.deny file. If an /etc/at.allow file exists, any names in that file will be able to use the ‘at’ command’.
Deleting the /etc/at.deny file may work, but only if no /etc/at.allow file exists.
B:An empty file called /etc/at.deny is the default on a Linux system and allows anyone to use the ‘at’ command.
C:Creating two empty files: /etc/at.deny and /etc/at.allow would also work because an empty /etc/at.allow file would prevent the use of the ‘at’ command.
However, it is unnecessary to create both files.
Download Printable PDF. VALID exam to help you PASS.
|
|