• Exec@pawb.social
    link
    fedilink
    arrow-up
    2
    ·
    3 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
      ·
      3 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
        arrow-down
        1
        ·
        3 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?