Re: How to write such sudoers?

2007-03-18 Thread Andy Smith
On Sun, Mar 18, 2007 at 12:36:50PM +0800, Jeff Zhang wrote: I want the user can execute commands through sudo with PASSWD and NOPASSWD for some exceptional commands, like nmap. I write the entity is lists bellow, but it seems not work. test ALL = PASSWD: ALL, NOPASSWD:

Re: How to write such sudoers?

2007-03-18 Thread Jeff Zhang
On 3/18/07, Andy Smith [EMAIL PROTECTED] wrote: On Sun, Mar 18, 2007 at 12:36:50PM +0800, Jeff Zhang wrote: I want the user can execute commands through sudo with PASSWD and NOPASSWD for some exceptional commands, like nmap. I write the entity is lists bellow, but it seems not work.

Re: How to write such sudoers?

2007-03-18 Thread Chris Lale
Jeff Zhang wrote: On 3/18/07, *Andy Smith* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Sun, Mar 18, 2007 at 12:36:50PM +0800, Jeff Zhang wrote: I want the user can execute commands through sudo with PASSWD and NOPASSWD for some exceptional commands, like nmap. I

Re: How to write such sudoers?

2007-03-18 Thread Jeff Zhang
On 3/18/07, Chris Lale [EMAIL PROTECTED] wrote: Jeff Zhang wrote: On 3/18/07, *Andy Smith* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Sun, Mar 18, 2007 at 12:36:50PM +0800, Jeff Zhang wrote: I want the user can execute commands through sudo with PASSWD and

How to write such sudoers?

2007-03-17 Thread Jeff Zhang
I want the user can execute commands through sudo with PASSWD and NOPASSWD for some exceptional commands, like nmap. I write the entity is lists bellow, but it seems not work. test ALL = PASSWD: ALL, NOPASSWD: /usr/bin/nmap