dezmd@lemmy.world to linuxmemes@lemmy.worldEnglish · edit-22 days agoActual systemd debate (redux)lemmy.worldimagemessage-square6fedilinkarrow-up1138arrow-down114file-text
arrow-up1124arrow-down1imageActual systemd debate (redux)lemmy.worlddezmd@lemmy.world to linuxmemes@lemmy.worldEnglish · edit-22 days agomessage-square6fedilinkfile-text
minus-squareSnot Flickerman@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up14arrow-down1·2 days agocrontab -e 50 8 23 9 * sudo ./systemd-debate.sh
minus-squareKusimulkku@lemm.eecakelinkfedilinkarrow-up2·16 hours agoShould’ve used a systemd timer for this
minus-squareExec@pawb.sociallinkfedilinkarrow-up2·1 day agoUnless configured to explicitly blanket allow without authentication I don’t think you can run sudo from cron
minus-squareWolf314159@startrek.websitelinkfedilinkarrow-up6·1 day 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-squareledslinkfedilinkarrow-up2arrow-down1·22 hours agoWith systemd this would not be an issue , you just need to set up a timer for your service and some policy rules /s?
Should’ve used a systemd timer for this
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?