Skip to main content
2 of 15
added 7 characters in body
Jonathan Komar
  • 7.1k
  • 8
  • 38
  • 54

Where should scripts be placed that are automatically executed by systemd?

I recently asked where to but a systemd unit file: Where do I put my systemd unit file?

I would like to run a python script every 5 minutes (not to be confused with a systemd unit file script that calls the python script). I read the answers to this question: Run script every 30 min with systemd

If I am running a script with a user who has higher privileges, this would be a security concern. This is where my question comes in. Where should or could you store scripts that are run by a user with higher privileges (let's say root user, just to find an extra-safe place)?

Jonathan Komar
  • 7.1k
  • 8
  • 38
  • 54