Answer the question
In order to leave comments, you need to log in
How to execute a job in cron using sudo?
I do a cron task on my username crontab -e
0 */3 * * * /home/gray/bbnvp.sh
to execute a file every 3 hours. But inside the commands that need to be executed using sudo , how is it to get everything right?
Answer the question
In order to leave comments, you need to log in
Give the user the ability to execute these commands with sudo without a password, or immediately run as root.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question