[ale] Sudo use in script

Gary MacKay Gary at EdisonInfo.com
Fri Oct 19 08:17:25 EDT 2001


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?

Background: I have an anti-virus daemon running. The manufacturer sends
out an email letting me know when a new virus definition is available. I
have a qmail script that watches for that specific message. It triggers
another script that downloads the new virus info, unzips it, puts it
where it belongs on the hard drive, and lastly, needs to issue a 'kill
-HUP' to the daemon so it will read the new info. So close, anyone know
of a way to do this? BTW, I have the script already figuring out the pid
of the daemon, and everything else, I just  need a way for a non-root
user to issue a 'kill' command. Q-mail receive processes run as the user
the message belongs to, not root.

- Gary

---
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