Where to store cronjob script?

Solution 1:

Typically, I put mine in:

  • /usr/local/bin/ for scripts to be run by more than one normal user
  • /usr/local/sbin/ for scripts which are to be run as root

That way you separate the task that the script does, from cron which just automates launching it.

You'll need root to store files there, though.