ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 348 - XK0-005 discussion

Report
Export

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 cronjob syntax:

0 1 * * * /bin/sh backup.sh

The backups, however, are not being created. When checking the crontab file, the administrator sees the following error:

/var/spool/cron/crontab/cron: Permission denied

Which of the following will permit the cronjob to execute?

A.

Creating the file cron.allow and adding user cron to it

Answers
A.

Creating the file cron.allow and adding user cron to it

B.

Giving cron ownership of the file /usr/bin/crontab

Answers
B.

Giving cron ownership of the file /usr/bin/crontab

C.

Running sudo cron restart to activate the cronjob

Answers
C.

Running sudo cron restart to activate the cronjob

D.

Running sudo crontab -u cron -e to edit the file with sudo

Answers
D.

Running sudo crontab -u cron -e to edit the file with sudo

Suggested answer: A

Explanation:

The error indicates that the cron user does not have permission to run the cronjob. Creating a cron.allow file and adding the user cron to it will allow that user to run cronjobs. The cron.allow file is a security feature that controls which users are allowed to use cron.

asked 09/10/2024
Sivakumar Balasundram
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first