🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50067

Re: If only the wheel group can su to root

#50067
From: Frank Slootweg
Date: Tue, 23 Jan 2001 14:10
37 lines
2298 bytes
  Adding to Russ' comments:

  I am not familiar with (Net)BSD startup procedures, but would assume
that "rc.d" is normally run bu root, not news. On my system, HP-UX a
System V Release V look-alike, I have /sbin/init.d/news which does a

nohup su news -c "/usr/local/news/etc/rc.news" &

i.e., like Russ said, rc.news, i.e. also inndstart, runs as news, and
since inndstart is set-UID root, it effectively runs as root, so during
*system* startup, it is:

root (/sbin/init.d/news) -> news ("su news") -> root (set-UID root)

  This setup has the advantage that both root and news can start/stop
INN and INN is set-UID root a short and as little as possible.

[FWIW, I am running INN 1.7.2]

Rebecca Ore <rebecca@ogoense.net> wrote:
> 
> How does the news user in news group start rc.d?  I'm getting an error
> message that eval: //news/bin/inndstart: permission denied.
> 
> Should I just go ahead and put the user in the wheel group?  I've done
> a search on netbsd and inn on both google and deja and didn't see any
> obvious answer.  I built from source that wasn't part of the NetBSD
> package system.
> 
> The file permissions look like this:
> 
> -r-sr-x---  1 root  news    87196 Jan 18 04:41 inndstart
> 
> -- 
> Rebecca Ore
> http://www.ogoense.net/rebecca
Technical Details
Message-ID: <94k3cb$lh2$3@support.neth.hp.com>
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!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!cyclone-pass-sjo.usenetserver.com!newshub2.rdc1.sfba.home.com!news.home.com!enews.sgi.com!sdd.hp.com!hp-corv.cv.hp.com!hpb10302.boi.hp.com!news.cup.hp.com!support.neth.hp.com!not-for-mail
References: <m37l3mip9i.fsf@pyrophore.ogoense.net>

Show Full Headers
Complete Article Headers
Message-ID: <94k3cb$lh2$3@support.neth.hp.com>
Subject: Re: If only the wheel group can su to root
Date: Tue, 23 Jan 2001 14:10:19 +0000
From: Frank Slootweg <franks@neth.hp.com>
References: <m37l3mip9i.fsf@pyrophore.ogoense.net>
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!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!cyclone-pass-sjo.usenetserver.com!newshub2.rdc1.sfba.home.com!news.home.com!enews.sgi.com!sdd.hp.com!hp-corv.cv.hp.com!hpb10302.boi.hp.com!news.cup.hp.com!support.neth.hp.com!not-for-mail
Newsgroups: news.software.nntp
Organization: NOYB
Lines: 36
Reply-To: Frank Slootweg <franks@support.neth.hp.com>
NNTP-Posting-Host: support.neth.hp.com
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (HP-UX/B.10.20 (9000/800))