sudoers not working after transfer to a new machine

Kyle O'Donnell kyleodonnell-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Fri Oct 23 00:11:41 UTC 2009


sudo /etc/init.d/net.eth0 restart

On Thu, Oct 22, 2009 at 6:15 PM, <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org> wrote:

>  I can su, but I can't run some scripts; /etc/sudoers contains...
>
> waltdnes  d531 = (root) NOPASSWD: /etc/init.d/net.eth0 restart
>
> ...and it has worked for years on another machine (with d531 changed to
> d530).  But on this machine...
>
> [d531][waltdnes][~] /etc/init.d/net.eth0 restart
>  * /sbin/runscript.sh: must be root to run init scripts
>
> other commands in /etc/sudoers end up asking for my password,
> notwithstanding the NOPASSWD: flag, and after entering password I get...
>
> Sorry, user waltdnes is not allowed to execute <whatever> as root on d531
>
> To answer the the obvious questions people will ask...
>
> [d531][waltdnes][~] hostname
> d531
>
> and yes, I am a member of wheel.
>
>
> --
> Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org>
> --
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20091022/86e1ae1c/attachment.html>


More information about the Legacy mailing list