🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19299

Changes to INN FAQ Part part7/9: part7

#19299
From: Heiko W.Rupp
Date: Tue, 15 Jul 1997 00:00
40 lines
1919 bytes
--- part7	1997/05/08 10:18:59	2.20
+++ part7	1997/07/12 07:56:57
@@ -82,6 +82,7 @@
 	7.49 NNTP-Posting-Host is localhost.do.main even if host has a name
 	7.50 uuxqt says: rnews exit status 1
 	7.51 innd get a non-zero ``nice'' value?
+	7.52 innd runs as root, even if configured to run as 'news'
 
 
 =====================================================================
@@ -1152,3 +1153,21 @@
    with AUTONICETIME set to 0.
 
 ------------------------------
+
+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 =).
+
-- 
Heiko W.Rupp        Gerwigstr.5        D-76131  Karlsruhe    +49 721 9661524
Tower: you have traffic at 10 o'clock, 6 miles!
Pilot: give us another hint, we have digital watches!


Technical Details
Message-ID: <diff.faq.p7_868929932@pilhuhn.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <diff.faq.p7_868929932@pilhuhn.de>
Subject: Changes to INN FAQ Part part7/9: part7
Date: Tue, 15 Jul 1997 00:00:00 +0000
From: hwr@pilhuhn.de (Heiko W.Rupp)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 256904067
Supersedes: <diff.faq.p7_819969004@pilhuhn.de>
Followup-To: news.software.nntp
Organization: The Home Of The Pilhuhn
Newsgroups: news.software.nntp,news.software.b