rkt logo

INN FAQ Part 7

NOTE: The maintainers of the INN FAQ stopped publishing in December 1997.
An important update to this topic is provided by Mib Software in the Usenet RKT for Subscribers.

Subject: (7.52) innd runs as root, even if configured to run as 'news'


We had a little debuging session due to inn 1.5.1 starting as root instead of
the configured value news. The problem was caused by _PATH_INNDDIR and the
following lines of inndstart.c:

    /* Make sure INND directory exists. */
    if (stat(INNDDIR, &Sb) < 0 || !S_ISDIR(Sb.st_mode)) {
        syslog(L_FATAL, "inndstart cant stat %s %m", INNDDIR);
        exit(1);
    }
    NewsUID = Sb.st_uid;
    NewsGID = Sb.st_gid;

So inndstart takes user and group values from _PATH_INNDDIR, and our
dir was owned by root =).

------------------------------

[Source: INN FAQ Part 7 Archive-name: usenet/software/inn-faq/part7]
[Last Changed: $Date: 1997/09/16 01:25:57 $ $Revision: 2.25 $]
[Copyright: 1997 Heiko Rupp, portions by Tom Limoncelli, Rich Salz, et al.]