Permission denied when adding crontab for Python program execution

Trying to set up cron to run a python program once every hour. Attempting to add a crontab to /etc gets permission denied. Assuming that my approach to getting a cron is correct, how do I get permission to update /etc



[Re-Titled by Moderator]

MacBook Pro 15″, macOS 12.7

Posted on Mar 13, 2025 09:01 PM

Reply
2 replies

Mar 14, 2025 04:23 PM in response to RonConners

Crontabs are per user in macOS. You manage them in the Terminal using the crontab command (run "man crontab" in terminal to see the man pages).


That said, cron is supported but considered almost obsolete in macOS and the preferred method for controlling background task execution is through launchctl - either LaunchAgents or LaunchDaemons. You may want to check out programs like LaunchControl or Lingon3 to help you build what you need - and of course review the Man page for launchctl.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Permission denied when adding crontab for Python program execution

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.