sudo /etc/init.d/net.eth0 restart<br><br><div class="gmail_quote">On Thu, Oct 22, 2009 at 6:15 PM,  <span dir="ltr"><<a href="mailto:waltdnes@waltdnes.org">waltdnes-SLHPyeZ9y/tg9hUCZPvPmw@public.gmane.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
  I can su, but I can't run some scripts; /etc/sudoers contains...<br>
<br>
waltdnes  d531 = (root) NOPASSWD: /etc/init.d/net.eth0 restart<br>
<br>
...and it has worked for years on another machine (with d531 changed to<br>
d530).  But on this machine...<br>
<br>
[d531][waltdnes][~] /etc/init.d/net.eth0 restart<br>
 * /sbin/runscript.sh: must be root to run init scripts<br>
<br>
other commands in /etc/sudoers end up asking for my password,<br>
notwithstanding the NOPASSWD: flag, and after entering password I get...<br>
<br>
Sorry, user waltdnes is not allowed to execute <whatever> as root on d531<br>
<br>
To answer the the obvious questions people will ask...<br>
<br>
[d531][waltdnes][~] hostname<br>
d531<br>
<br>
and yes, I am a member of wheel.<br>
<br>
<br>
--<br>
Walter Dnes <<a href="mailto:waltdnes-SLHPyeZ9y/tg9hUCZPvPmw@public.gmane.org">waltdnes@waltdnes.org</a>><br>
<font color="#888888">--<br>
The Toronto Linux Users Group.      Meetings: <a href="http://gtalug.org/" target="_blank">http://gtalug.org/</a><br>
TLUG requests: Linux topics, No HTML, wrap text below 80 columns<br>
How to UNSUBSCRIBE: <a href="http://gtalug.org/wiki/Mailing_lists" target="_blank">http://gtalug.org/wiki/Mailing_lists</a><br>
</font></blockquote></div><br>