Sample Header Ad - 728x90

cron lacks permissions to run a script

4 votes
3 answers
6942 views
I have a script (which backs up, using rclone) that I run from the Terminal or Automator after chmod a+x with no permissions problems. When this script is run in cron (or launchd), stderr shows "/bin/bash: /Users/joshua/script.sh: Operation not permitted." This approach works fine in Ubuntu. Edit: The above question remains relevant, but note that launchd is the favored cron replacement for Mac, while Automator is available for application-level scheduling.
Asked by Joshua Fox (1387 rep)
Nov 4, 2019, 10:42 AM
Last activity: Jun 26, 2025, 02:07 AM