Granting Full Disk Access to cron
Published in
2 min readJan 6, 2020
- Go to System Preferences > Security & Privacy > Privacy > Full Disk Access:
Click on the (+) icon to add an item to the list
Press command
+shift
+G
to open the Go to Folder… dialog, type /usr/sbin/cron
and press Enter
:
Select the cron file and click Open:
That’s it! Now my script can access my user’s $HOME/Library
folder and all its contents!
Warning: this is not a great idea security-wise, if a malicious actor can create cron jobs or edit the scripts ran as cron jobs, he or she would have Full Disk Access too. Monitor the system’s installed cron jobs manually or with a tool such as KnockKnock and proceed with caution.