[Eug-lug] Configuring sudo to allow one command without a password
Bob Miller
kbob at jogger-egg.com
Sat Jul 15 18:12:40 PDT 2006
Martin Kelly wrote:
> Anyway, my current sudoers line for sudo is like this:
>
> martin ALL=(ALL) ALL
>
> So that I can use sudo with the root password. I'd like it to stay the
> same except to allow the above command without a password.
Try this.
martin ALL = (ALL) ALL
martin All = NOPASSWD: /etc/init.d/networking restart
--
Bob Miller K<bob>
kbob at jogger-egg.com
More information about the EUGLUG
mailing list