Okay, so I just write a new line then... I was trying to figure out how to incorporate it into the already written line, which was troublesome. Thanks.

What is the "ALL = " part for? Doesn't that say that it is for all commands?

Bob Miller wrote:
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

_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to