Article View: news.software.nntp
Article #24474Re: INN 1.7.2 & passwords in nnrp.access
From: Aidan Cully [Staff]
Date: Thu, 18 Dec 1997 00:00
Date: Thu, 18 Dec 1997 00:00
41 lines
2424 bytes
2424 bytes
In article <34998981.1C8D507C@flash.net>, Mike Wilson <mwilson@flash.net> wrote: >Chris Bellomy wrote: >> >> > If it's the same "patch" that Chris originally wrote it uses setuid() >> > among other things and requires the nnrpd to be started as root... This >> > is less than desirable in most cases. Most of that "code" was handed >> > over by me before I knew a better way to handle it. >> >> Basically, that's right. We call nnrpd from inetd (innd lives on >> port 433) as root; every command except AUTHINFO begins with a >> setuid() to news. It's not perfect, but it's no worse than, >> say, popper. > >Actually I am curious how you setup a nnrp.access entry to catch >everyone not coming from a valid address and force name/password auth. >If you place a * entry it grabs everyone... if you do it by domain... >well it's huge. do you have a seperate nnrp.access file for the >"authorization" port and one for the normal port? If so how do you get >nnrpd to use the seperate access file (code hack?). It's easy.. Put the * entry first. nnrpd will happily override whatever config comes later in the file that matches the remote host.. Therefore, *:RP:+:+:* *.panix.com:RP:::* will force people from anywhere outside of panix.com to authenticate from our password file. People from inside our network will not have to. (the trick is, nnrpd sets a needauth variable based on the string lengths of the PERMuser and PERMpass entries. the first matching entry made both > 1, so authentication is required. the next made both 0, so no auth is needed.) HTH, --aidan -- Aidan Cully "Umm.. Could you call back? My house is on fire." Panix Staff --Tom Waits aidan@panix.com
Technical Details
Message-ID:
<67c5mi$fis@news1.panix.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!not-for-mailReferences:
<676gdq$9kg$1@ralph.vnet.net> <3499727D.52B75B60@flash.net> <67butq$so0$1@excalibur.flash.net> <34998981.1C8D507C@flash.net>Show Full Headers
Complete Article Headers
Message-ID: <67c5mi$fis@news1.panix.com> Subject: Re: INN 1.7.2 & passwords in nnrp.access Date: Thu, 18 Dec 1997 00:00:00 +0000 From: aidan@panix.com (Aidan Cully [Staff]) References: <676gdq$9kg$1@ralph.vnet.net> <3499727D.52B75B60@flash.net> <67butq$so0$1@excalibur.flash.net> <34998981.1C8D507C@flash.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!not-for-mail X-Deja-AN: 299456758 Distribution: inet Organization: PANIX Public Access Internet and UNIX, NYC Newsgroups: news.software.nntp