102-500 practice question 11 of 30
In case neither cron.allow nor cron.deny exist in /etc/, which of the following is true?
Full set: 233 questionsThe behavior of the cron daemon regarding user access is controlled by /etc/cron.allow and /etc/cron.deny. If cron.allow exists, only users listed in it can create crontabs. If cron.allow does not exist but cron.deny does, users listed in it are denied access. If neither file exists, the default behavior on most modern Linux distributions, including Debian, Ubuntu, and recent RHEL versions, is to permit all users to create and manage their own crontabs.
A. This is incorrect; the absence of both files typically defaults to an "allow all" policy on most common Linux distributions.
C. The cron daemon starts and runs normally, simply applying its default access control policy, which does not require these files.
D. Standard cron implementations do not have a mechanism for administrative approval of individual user crontabs.
1. crontab(5) Linux manual page (from cronie or vixie-cron). The "ACCESS CONTROL" section states: "If neither of these files exists, then depending on site-dependent configuration parameters... all users will be able to use this command."
2. Ubuntu 22.04 Server Guide, "Automated Tasks (cron)". It specifies that if neither /etc/cron.allow nor /etc/cron.deny exists, then all users are able to use crontab.
3. Red Hat Enterprise Linux 8 Documentation, "Configuring basic system settings", Chapter 21. Automating system tasks. Section 21.1.2. "Restricting access to cron" confirms that if neither file exists, all users can create cron jobs.
Keep practicing
Take the free 102-500 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 102-500 practice questions
- Question 1What output is produced by the following command sequence? echo ‘1 2 3 4 5 6’ | while rea…
- Question 2Which command will set the local machine's timezone to UTC?
- Question 3Which of the following SQL statements will select the fields name and address from the co…
- Question 4Which of the following commands can remove a user from a group?
- Question 5Where are user specific crontabs stored?
- Question 6Which of the following crontab entries will execute myscript at 30 minutes past every hou…
