Hi Chris,
My sudo line is:
rob ALL = ALL, NOPASSWD: /opt/xfce4/libexec/xfsm-shutdown-helper
which prompts me for a password, except when running xfsm-shutdown-helper.
As I recall when trying to set this up to work right, the order of the commands is quite important. I'm guessing you've got a chris ALL = ALL line somewhere in the file.
Rob.
On 25/02/07, Eur Ing Chris Green cl@isbd.net wrote:
I virtually never use sudo as I simply su to root and do what's needed.
However I want to do a mount in a shell script that runs as me rather than root and the safest way to do it would seem to be to all 'me' to sudo a mount command. However I can't get it to work with no password, what I have in the sudoers file is:-
chris home = NOPASSWD: /sbin/mount chris home = NOPASSWD: /sbin/umount
... but it's still prompting me for a password when I do 'sudo mount //bla/bla bla'. So, what am I doing wrong?
-- Chris Green
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!