@dezmd@lemmy.world to linuxmemes@lemmy.worldEnglish • edit-211 months agoActual systemd debate (redux)lemmy.worldimagemessage-square8fedilinkarrow-up1156arrow-down115file-text
arrow-up1141arrow-down1imageActual systemd debate (redux)lemmy.world@dezmd@lemmy.world to linuxmemes@lemmy.worldEnglish • edit-211 months agomessage-square8fedilinkfile-text
minus-square@Exec@pawb.sociallinkfedilink2•11 months agoUnless configured to explicitly blanket allow without authentication I don’t think you can run sudo from cron
minus-square@Wolf314159@startrek.websitelinkfedilink6•11 months agoYeah, 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.
minus-square@leds@feddit.dklinkfedilink1•11 months agoWith systemd this would not be an issue , you just need to set up a timer for your service and some policy rules /s?
Unless configured to explicitly blanket allow without authentication I don’t think you can run sudo from cron
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.
With systemd this would not be an issue , you just need to set up a timer for your service and some policy rules /s?