On Sun, 19 Sep 1999, Magnus Bodin wrote:
> On Sun, Sep 19, 1999 at 11:01:09AM -0400, Subba Rao wrote:
> >
> > Here is the message, I get after running the script to start qmail
> >
> > Script was named "qt"
> > =================
> > 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 &
> >
> >
> >
> >
> > root@caesar:/var/qmail# multilog: fatal: unable to switch to current directory:
>access denied
> > multilog: fatal: unable to switch to current directory: access denied
> >
> > I run this script as root.
>
> You run the script as root, but setuidgid makes multilog run as qmaill.
> Do a
>
> chown qmaill:qmail /var/log/qmail/qmail-smtpd
>
> and multilog will be able to change dir.
>
>
> /magnus
> --
> MOST useless 1998 --> http://x42.com/
>
Hello,
I had some time before the same problem as Suba Rao and tried a solution
similar to the one proposed now by Magnus Bodin but didn't work for me.
I don't no why! I have to run multilog as root to be able to log messages
from qmail.
Serban