On 22-Feb-04, at 8:04 PM, Rick Widmer wrote:

Thomas Madej wrote:

On 22-Feb-04, at 7:29 PM, Marcin Soltysiak wrote:

sudo with PHP extension? When PHP is a module? How?


Via PHP's CGI module.

Please try it and let me know how it works!

Personally, I am quite happy keeping general web sites off the mail
server, and running PHP as an Apache module.  I _think_ it should work
under CGI, but I don't use PHP as CGI, and don't even know where to
start to configure it in.  If no one else doe it, I will eventually get
to trying this with CGI, but don't hold your breath.  QmailAdmin 1.3
will be released before I spend any time on it.

If you do try it and have problems I will help you, but unless someone
else is actively involved it will remain a very low on my priority list.

What about SUID on the script file? That might work too.


You just need the proper script header and the proper entries in /etc/sudoers. I think the following header would work:
#!/usr/bin/sudo -u vpopmailuser /usr/bin/php

but then again, running another server is probably more secure than this method.

Thomas Madej
Furi Enterprises

Reply via email to