Article View: news.software.nntp
Article #50094Re: If only the wheel group can su to root
From: Rebecca Ore
Date: Wed, 24 Jan 2001 03:15
Date: Wed, 24 Jan 2001 03:15
39 lines
2548 bytes
2548 bytes
Frank Slootweg <franks@neth.hp.com> writes:
> 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 found out that while root was a member of the group news, news
wasn't. After some jumbling and juggling, I got that fixed (too many
roots spoil the PFY or whatever I am).
>
> 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.
NetBSD has regular users who can't su to root, wheel group members who
have special privileges, and low numbers PID (or whatever, I can't
remember and I'm too tired to look it up) for special groups (0 for
root). I had to add news to news and (probably) to wheel (users can
be members of multiple groups).
(If this was a problem, I'll fix it after I've had more sleep).
I'm now able to post and read the groups I've asked to be fed.
--
Rebecca Ore
http://www.ogoense.net/rebecca
Technical Details
Message-ID:
<m38zo1y72d.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!supernews.com!isdnet!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-xfer.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!POSTED.monger.newsread.com!not-for-mailReferences:
<m37l3mip9i.fsf@pyrophore.ogoense.net> <94k3cb$lh2$3@support.neth.hp.com>Show Full Headers
Complete Article Headers
Message-ID: <m38zo1y72d.fsf@pyrophore.ogoense.net> Subject: Re: If only the wheel group can su to root Date: Wed, 24 Jan 2001 03:15:07 GMT From: Rebecca Ore <rebecca@ogoense.net> References: <m37l3mip9i.fsf@pyrophore.ogoense.net> <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!supernews.com!isdnet!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-xfer.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!POSTED.monger.newsread.com!not-for-mail Mail-Copies-To: never Sender: rebecca@pyrophore.ogoense.net Newsgroups: news.software.nntp Organization: Rebecca's Lines: 38 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 207.8.130.194 X-Complaints-To: Abuse Role <abuse@netaxs.com> X-Trace: monger.newsread.com 980306107 207.8.130.194 (Tue, 23 Jan 2001 22:15:07 EST) NNTP-Posting-Date: Tue, 23 Jan 2001 22:15:07 EST