this post was submitted on 23 Sep 2024
133 points (90.8% liked)

linuxmemes

20920 readers
2166 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
133
submitted 1 week ago* (last edited 1 week ago) by dezmd to c/linuxmemes
 

/throws molotov

Previous thread.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 week ago (1 children)

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

[–] [email protected] 6 points 1 week ago (1 children)

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.

[–] [email protected] 1 points 1 week 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?