tags 316442 - moreinfo
clone 316442 -1
reassign -1 courier-mta
retitle -1 courier-mta: cannot use sendmail as root with stdout, stderr closed
thanks

Hi,

Wladimir Mutel <m...@mwg.dp.ua> writes:

>       Finally, I dared to strace atd and its subprocesses, and found the
>       difference between sendmail run for root and non-root user.
>       Being run from atd, sendmail process does not have open stdout and
>       stderr file descriptors. And courier's sendmail, being run for ordinary
>       user, checks that (fcntl(..., F_GETFD)) and reopens them to /dev/null.
>       For root user, it does not check/reopen them, so FDs 1 and 2 get
>       reused for other file descriptors (probably, in dlopen, as a socket
>       to connect to nscd service, and so on), and certain hell ensues as a
>       result.

That looks like a bug in courier's implementation of sendmail.  It
should do the same if executed as root.

If mail (from mailutils) also closed stdout and stderr, this might be
the same issue as #430166.

Regards,
Ansgar



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to