as follows:
- Code: Select all
me ALL = NOPASSWD: /bin/mount
I have a script in /home/me/bin. If I open a terminal and invoke this, the script is recognised and executed with no password being necessary. This is the script - very simple.
- Code: Select all
#!/bin/bash
# mountnas
if [ 0 = `sudo mount |grep -c nasbox` ]
then
sudo mount -a
fi
But when I use a launcher from the desktop it doesn't obey the sudoers line and asks for the password. If I give the password it works. So it knows I am the correct user. Why doesn't it obey the command in sudoers?
(this is in Mint13Mate 64bit)


