[plug] Running Qmail
Russell Steicke
r.steicke at bom.gov.au
Sun Sep 19 11:31:03 WST 1999
On Sat, Sep 18, 1999 at 06:09:47PM -0400, Subba Rao wrote:
> Each time I make progress, I seem to be hitting a new road block.
Keep going, it's worth it.
> Contents of qt file
> ===================
> supervise /var/lock/qmail-smtpd tcpserver -v -x/etc/tcp.smtp.cdb -u71 -g1001 0 25 \
> rblsmtpd qmail-smtpd 2>&1 | setuidgid qmaill multilog | \
> setuidgid qmaill multilog -s5000000 -n5 /var/log/qmail/qmail-smtpd &
>
>
> After switching to user qmaild, I ran the "qt" script. After a little while tinkering with other system,
> I executed "qt" again and got the message
>
> "/usr/local/bin/setuidgid: Permission denied"
>
I think Greg was on the right track with this. Setting uid and gid is
something that only root is allowed to do, unless you have a suid binary.
So it would make sense that /usr/local/bin/setuidgid would have
permissions like rwx------, ie only executable for root. In the script
you have two invocations of setuidgid one after the other. The first one
is probably succeeding, ie it is becoming the user qmaill, and then the
second one fails. My guess would be to get rid of the first setuidgid in
the pipeline.
I installed 1.01 previously, and a lot of things were added to 1.03, like
RBL support, supervise and tcpserver, so I'm also a little lost.
--
Russell Steicke
-- Fortune says:
Kent's Heuristic:
Look for it first where you'd most like to find it.
More information about the plug
mailing list