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 questions
Answer options
A: Without additional configuration, no users may have user specific crontabs.
B: Without additional configuration, all users may have user specific crontabs. Correct answer
C: The cron daemon will refuse to start and report missing files in the system's logfile.
D: When a user creates a user specific crontab the system administrator must approve it explicitly.
Correct Answer:
B. Without additional configuration, all users may have user specific crontabs.
Explanation

The 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.

Why Incorrect

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.

References

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.

Scroll to Top