[H-GEN] Problems with sudo config.
David Seikel
onefang at gmail.com
Tue Nov 1 19:09:40 EST 2005
I am having trouble setting up sudo to do what I want it to do. I wish
to allow one particular user to have NOPASSWD access to running two
particular commands as root, and all other access for that user to
other connamds, as well as all access by other users to use targetpw.
This is using the standard sudo installed by SuSE 9.3 Professional
- sudo-1.6.8p7-3.2.
By my understanding of the documentation, the following should work
(in the real sudoers file, cmd1 and cmd2 are replaced by longer
commands, the shorter ones are used here to avoid line wrapping and
for clarity)-
Defaults targetpw
root ALL=(ALL) ALL
dvs1 cluster=(root) NOPASSWD: cmd1, cmd2
%users ALL=(ALL) ALL
I have tried various combinations of the above, and thrown in a "dvs1
cluster=(root) NOPASSWD: ALL" for good measure, but nothing does what I
want. I have to continually comment out one of the last two lines
depending on whether I am running cmd1 and cmd2 or not.
Is this even possible?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.humbug.org.au/pipermail/general/attachments/20051102/d5da4d05/attachment.sig>
More information about the General
mailing list