* Dylan
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
IF you have *solved* it, consider providing the solution and also marking the thread as solved. Not doing so provides no assistance to anyone following with similar problems and is very inconsiderate! Remember the prime reason for the existance of these lists is solve problems. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org