How do I change sudo crontab?

Ivanesn

New member
How do I change sudo crontab?
Answer
crontab -e edits the crontab for the current user, so any commands contained within will be ran as the user who’s crontab you are editing. sudo crontab -e will edit the root users crontab, and so the commands within will be run as root. To add on to cduffin, use the minimum permissions rule when running your cronjob.
 

Tìm kiếm

Back
Top