I have a backup script that contains several "sudo" commands. I don't want to have to type my username and password each time I run this script. So, I tried to add the "SUID" bit like this:
sudo chmod u+s <filename>
Now my file looks like this:
-rwsrwxr-x 1 root erelsgl 1868 Nov 12 09:03 <filename>
But, when I run the file, I still get a password prompt.
What am I doing wrong?