dezmd@lemmy.world to linuxmemes@lemmy.worldEnglish · edit-22 months agoActual systemd debate (redux)lemmy.worldimagemessage-square7fedilinkarrow-up1149file-text
arrow-up1149imageActual systemd debate (redux)lemmy.worlddezmd@lemmy.world to linuxmemes@lemmy.worldEnglish · edit-22 months agomessage-square7fedilinkfile-text
minus-squareSnot FlickermanlinkfedilinkEnglisharrow-up14·2 months agocrontab -e 50 8 23 9 * sudo ./systemd-debate.sh
minus-squareExec@pawb.sociallinkfedilinkarrow-up2·2 months agoUnless configured to explicitly blanket allow without authentication I don’t think you can run sudo from cron
minus-squareWolf314159@startrek.websitelinkfedilinkarrow-up6·2 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-squareleds@feddit.dklinkfedilinkarrow-up2·2 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?