granting crontab to access any resource on the disk will require the full disk access on Mac.
you need to add the cron service to the list of apps with Full Disk Access in System Preferences.

Here is how to do it:

  1. Open System Preferences.
  2. Go to Security & Privacy.
  3. Click the Privacy tab.
  4. Scroll down to Full Disk Access in the left panel.
  5. Click the lock icon in the bottom left corner to make changes and enter your administrator password.
  6. Click the + button to add a new application.
  7. Navigate to /usr/sbin/cron and add it to the list.

Note that these steps involve using the System Preferences GUI and cannot be accomplished solely through the terminal.

Here is how it’s look like after granting full disk access.

Leave a Reply

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