• Exec@pawb.social
      link
      fedilink
      arrow-up
      2
      ·
      2 months ago

      Unless configured to explicitly blanket allow without authentication I don’t think you can run sudo from cron

      • Wolf314159@startrek.website
        link
        fedilink
        arrow-up
        6
        ·
        2 months ago

        Yeah, they got the sudo placement inside out. You “sudo crontab -e” and put your commands there that need sudo, you don’t sudo the individual commands in the regular user’s crontab.

        • leds@feddit.dk
          link
          fedilink
          arrow-up
          2
          ·
          2 months ago

          With systemd this would not be an issue , you just need to set up a timer for your service and some policy rules /s?