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/