How you can Fix Cron Permission Issues in MacOS Catalina and Mojave?

Mac users may encounter that some shall script with cron, cron jobs, and crontabs are not working at all or not functioning correctly. These particular issues found in the newest operating systems of Mac OS, such as Mojave 10.14, Catalina 10.15, and later versions available. The error encountered depending upon situations associated with a permissions error, an operation not permitted error, or failure of the script/cronjob in the background. There could be several reasons for a cronjob failure. The strict security measures released with the latest version of Mac OS could also be at fault and cause the cronjob failure.

We will go through the process to fix the cron permission issues for advanced Mac users in Mac OS Catalina, Mojave, and latest released versions. If you are not using cron and still face the permissions issues, then we do not recommend making any adjustments in settings. The below modifications are strictly meant for advanced Mac users only, who use cron and come across the permission issues.

Opt-Out from macOS Catalina

How to grant Full Disk Access to Cron in Mac OS?

If the latest versions of Mac OS faces cron permissions issues, then you should have to grant full disk access. Let’s go by the following steps to allow the full disk access to cron.

  1. Go to System Preferences in Apple Menu and select the “Security & Privacy” option.
  2. In the “Privacy” tab, select the “Full Disk Access” option from the side menu option.
  3. Click on the lock icon in the corner and authenticate with the system password to modify full disk access settings in your Mac.
  4. Now pull down the “Go” menu from the Finder in Mac OS and choose “Go to Folder.”
  5. Now enter the path: /usr/sbin/cron and select Go.
  6. Now you have to drag and drop the “cron” in the list of apps and processes with full disk access permission. Cron should now appear in the list.
  7. Get out of system preferences window and open Finder sbin window once you finished.

There are security measures introduced with the release of new Mac OS, and causes issues like operation not permitted. For quantifying this issue, you may require a Terminal application to Full Disk Access options. If you rely on smbd for networking purposes, then it should be added to Full Disk Access options.

Instructions for Normal Mac users

The modifications in settings suggested are for the advanced Mac users only. We recommend you yo not grant Full Disk Access to any app, process, or anything else unless you are aware of what you are doing and what could be the end consequences. The cron runs the processes in the background for a specific reason, and it may disrupt your security standards. So before making any modifications in settings, make sure if you need it.

Advertisements

It is easy for you to revoke the Full Disk Access whenever you want by accessing the system settings as per your requirement. You can also use this feature to grant access to files & folders to applications installed in your Mac. This feature is best and normal users do not make any changes in it. Advanced users use different apps and want to operate efficiently, which requires them to modify the changes.

Cron is powerful and used for automation, backups, scripting, and more advanced activities. You can always check crontab for scripts and also change the default crontab editor if you want.

Did this help you to resolve your issues related to cron permissions in Mac OS?

If you have any ideas, thoughts, opinions, and tips/tricks related to cron, then let us know in the comment section down below.

Advertisements

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.