🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82801

Re: INN 2.5.1 Owner-Group different than 2.4.5

#82801
From: Russ Allbery
Date: Fri, 12 Feb 2010 23:29
47 lines
3297 bytes
"John F. Morse" <john@example.invalid> writes:

> The /etc/news configuration files are all root:root except passwd.nntp
> which is root:news. Modes are different too, with 644 on all but
> incoming.conf and passwd.nntp which are 640. I guess allowing news to
> read is really all that is needed for these config files to work.

> The problem may be incoming.conf which is 640 root:root. How is news
> going to read this? It is 640 news:news on the 2.4.5 servers.

incoming.conf should be 640 root:news.

> In the /usr/lib/news/bin directory, where user news runs programs,
> everything is owned by root:root except innbind is root:news and rnews
> is news:uucp and most everything is 755, including rnews (innbind is 754
> with the sticky-bit set in the owners position -rwsr-xr--).

That's correct.

> With the world having execute privileges, news can certainly run these
> files, but so could anybody who gains access.

Which is harmless (and in some cases even desireable, for utility
programs).  They won't have write access to the spool directories.

> I don't understand why the owner:group was changed from 2.4.x to 2.5.x,
> but it looks like the permissions make everything work the same, except
> for security.

> Why there are read and execute flags set for the world is another
> puzzle. Ideas?

http://www.debian.org/doc/debian-policy/ch-files.html#s10.9

    Setuid and setgid executables should be mode 4755 or 2755
    respectively, and owned by the appropriate user or group. They should
    not be made unreadable (modes like 4711 or 2711 or even 4111); doing
    so achieves no extra security, because anyone can find the binary in
    the freely available Debian package; it is merely inconvenient. For
    the same reason you should not restrict read or execute permissions on
    non-set-id executables.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <878wayjami.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!usenet.stanford.edu!news.stanford.edu!not-for-mail
References: <hl2qud$srr$2@optima5.xanadu-bbs.net> <87d40apbfq.fsf@windlord.stanford.edu> <hl480b$8q7$1@optima5.xanadu-bbs.net> <hl4gbh$ckg$1@news.trigofacile.com> <hl4nt6$d7d$1@optima5.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <878wayjami.fsf@windlord.stanford.edu>
Subject: Re: INN 2.5.1 Owner-Group different than 2.4.5
Date: Fri, 12 Feb 2010 15:29:57 -0800
From: Russ Allbery <rra@stanford.edu>
References: <hl2qud$srr$2@optima5.xanadu-bbs.net> <87d40apbfq.fsf@windlord.stanford.edu> <hl480b$8q7$1@optima5.xanadu-bbs.net> <hl4gbh$ckg$1@news.trigofacile.com> <hl4nt6$d7d$1@optima5.xanadu-bbs.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!usenet.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 47
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.stanford.edu 1266017397 17515 171.67.225.134 (12 Feb 2010
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Cancel-Lock: sha1:OoIBDHf9Tu/McBlkUPNATWnUuBM=