I have a call to a python script that is sudo -u user_name python python_scipt.py and I need to schedule it to run every 30 minutes with crontab. The problem is how can I authenticate it with sudo on crontab?
Everything solved with the sudo crontab -u username -e
credits to 9000
Authenticate with sudo on a crontab job