I am trying to run a script at startup that requires sudo priviledges. What is does is run the smbmount command to mount a network drive. How can I run this without sudo passwd? I edited sudoers and tried both these lines:
jmasgalas ALL=NOPASSWD: /usr/bin/smbmount
jmasgalas ALL=NOPASSWD: /home/jmasgalas/mountscript
It still does not work. Here is the exact command in the script:
sudo smbmount //server/share /mnt/H -o username=xxxx,password=xxxx,file_mode=0777,dir_mod e=0777
What am I doing wrong?