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 =). ------------------------------ [Last Changed: $Date: 1997/09/16 01:25:57 $ $Revision: 2.25 $] [Copyright: 1997 Heiko Rupp, portions by Tom Limoncelli, Rich Salz, et al.] |