[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[altq:1893] Re: Urgent



--On 20 August 2003 09:52 -0500 Akash Malhotra <akash@me.umn.edu> wrote:

Hi

[snip]

As Apache server cannot run as root ..and apache user cannot provide a
SIGHUp signal to altqd daemon as it runs as root...I want to run
altqd as user apaces so that i can provide SIGHUP signal..

I would appreciate if one can provide a better solution to my problem..

I'd suggest you very carefully write a program that's setuid root, and sends the SIGHUP on behalf of the webserver process (i.e. Apache calls the setuid root CGI, which in turn issues a sighup to altq).


Although I don't particularly like setuid root binaries - providing it's written sensibly, and handled properly you should be Ok :)

-Kp