On 06/02/14 15:08, Bernhard Voelker wrote:
On 02/06/2014 03:08 PM, Dylan wrote:
How do I get sudo to allow me to run the command without entering the password? I have:
dylan ALL = (ALL) NOPASSWD: ALL
in my sudoers file but I still get asked for my password...
*your* password? IMHO that's not a good sudo config anyway because it should ask the target user's password ("targetpw").
Yes, *my* password - that's one of the reasons to use sudo rather than su... But no matter... I've solved it now Dx
I'd use something like
Defaults targetpw
root ALL=(ALL) ALL berny ALL=(root) NOPASSWD: /usr/bin/mount /share
and have a little script ... or an alias like
alias mountshare='sudo /usr/bin/mount /share'
Have a nice day, Berny
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org