XK0-005 practice question 9 of 10
A systems administrator created a user cron to run a scheduled database backup cronjob on the server at 1 a.m. every day. The following is the…
Full set: 487 questionsCron daemon security and user execution privileges on Linux systems are governed by the access control files cron.allow and cron.deny, typically located in /etc/. When /etc/cron.allow exists on a system, only user accounts explicitly listed within that file are permitted to submit, edit, or execute scheduled jobs via the crontab spool service. If the user cron encounters a permission denied error when accessing /var/spool/cron/crontab/cron, it indicates that user-level access to the cron subsystem is restricted. Creating the cron.allow file and adding the username cron to it explicitly authorizes the user account to access the spool directory and execute scheduled crontab jobs successfully.
B. Changing ownership of /usr/bin/crontab breaks system security permissions; crontab must remain owned by root with setuid/setgid bits intact.
C. Restarting the cron daemon does not resolve permission denied errors caused by access control restrictions on user accounts.
D. Editing another user's crontab with sudo bypasses editing restrictions once, but does not grant the cron user execution permission for running scheduled jobs.
IEEE Std 1003.1-2017 (POSIX.1-2017) Standard Shell & Utilities: crontab.
Linux man-pages project: crontab(1) - maintain crontab files for individual users.
Keep practicing
Take the free XK0-005 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other XK0-005 practice questions
- Question 1A Linux engineer needs to block an incoming connection from the IP address 2.2.2.2 to a s…
- Question 2A systems administrator identifies multiple processes in a zombie state. Which of the fol…
- Question 3An administrator made a change to a system's network configuration. Which of the followin…
- Question 4Which of the following can reduce the attack surface area in relation to Linux hardening?
- Question 5A Linux administrator needs to check extended permissions applied to the directory test. …
- Question 6A Linux systems administrator is updating code. After completing the update, the administ…
