25 Feb
2007
25 Feb
'07
6:52 p.m.
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