I added some commands to the bash script and those commands need root permission. So then I added sudo keyword to those commands. As the normal way, I added this script to the crontab file to automate my task.
Is there any way to give root access when it tries to run automatically?
Note: I'm using crontab to automate my script.