[ale] Sudo use in script

Chris Ricker kaboom at gatech.edu
Fri Oct 19 10:18:10 EDT 2001


On Fri, 19 Oct 2001, Gary MacKay wrote:

> I presume it goes against all security measures, but I'll ask anyway. I
> need a way for a script that runs as a user to be able to issue a "kill
> -HUP xxx' command. I've entered the user's name in the /etc/sudoers
> file, but that has a time limit thing. Is there any way to do this?

# visudo

and add

User_Alias	QMAILVIRUS=user

QMAILVIRUS	ALL=NOPASSWD:/path/to/script


would be one way to do it.

later,
chris


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list