[ALUG] Re: sudo help please
Eur Ing Chris Green
cl at isbd.net
Sun Feb 25 19:12:30 GMT 2007
On Sun, Feb 25, 2007 at 06:52:00PM +0000, Eur Ing Chris Green 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
oops, that's "... allow me ...".
> 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 at 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!
--
Chris Green
More information about the main
mailing list