Howdy!

I'm running qmail 1.03 on a RedHat 5.1 (2.0.34 kernel, glibc) system,
with the vchkpw single-uid package to handle our virtual domains.  The
package and qmail are working wonderfully :-)

I'd like to set up a web page to monitor common mail stat's, essentially
"qmHandle -l" and "qmHandle -s" with the idea to eventually set up a
CGI-based qmHandle queue-handling facility.

qmHandle works, when run as root as intended.  Off course, Apache runs
as nobody, as when qhHandle is run as nobody, line 16 of the perl
script:

@dirlist = split (/\n/, `ls -1 -R ${queue}remote`);

Generates:
[nobody@vmail bin]$ qmHandle  -l
ls: /var/qmail/queue/remote: Permission denied
ls: /var/qmail/queue/local: Permission denied

Naturally, this is because "nobody" does not have permissions on the
queue.

Any idea's on how to (safely) allow an SSI like "<!--#exec
cmd="/var/qmail/bin/qmHandle -l" -->" to run as nobody?

-Tillman Hodgson

Reply via email to