On 06/02/14 19:22, Patrick Shanahan wrote:
* Dylan
[02-06-14 13:51]: 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.
Because the original problem of the tread is NOT solved - Virtualbox VMs don't automatically mount shares, and putting them in fstab makes the VM unbootable. The workaround/hack/cludge of mounting the shares through a script executed on login is not a solution, and the resolution of my temporary minor error in sudo configuration does not warrant a [SOLVED] annotation. Nevertheless, I'll consider myself suitably patronised
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org