🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Todd Faulkner Tue, 16 Dec 1997 00:00
INN 1.7.2 & passwords in nnrp.access
#24416
Author: Todd Faulkner
Date: Tue, 16 Dec 1997 00:00
23 lines
1137 bytes
Hello,

I am running inn-1.7.2 under Solaris 2.6 on a sparc 20. I want to 
be able to setup username and password verification for news server
access. I want inn to check the passwd & shadow files for user access.

I setup the nnrp.access file like this:

166.82.*:Read Post:+:+:

According to the FAQ that should make the user enter a valid username
and password. It does require them to enter one, but always fails.

Is there something I have to do at compile time, or is it something wierd 
with inn and solaris??

Any help would be appreciated.

Todd Faulkner
comstar@vnet.net

Re: INN 1.7.2 & passwords in nnrp.access
#24409
Author: Dan Foster
Date: Tue, 16 Dec 1997 00:00
33 lines
1828 bytes
In article <676q31$goa$2@news1.exit109.com>,
>Jeremy  <jeremy@exit109.com> wrote:
>>Todd Faulkner <comstar@vnet.net> wrote:
>
>> I am running inn-1.7.2 under Solaris 2.6 on a sparc 20. I want to 
>> be able to setup username and password verification for news server
>> access. I want inn to check the passwd & shadow files for user access.
>> 
>> I setup the nnrp.access file like this:
>> 
>> 166.82.*:Read Post:+:+:
>> 
>> According to the FAQ that should make the user enter a valid username
>> and password. It does require them to enter one, but always fails.
>
>If you're using shadowed passwords, it will fail, because only root
>can read the shadow file and nnrpd is running as news.
>
>I don't know if there's a fix for this other than hacking the code
>or not using shadowed passwords.

There's always taking the cyrus imap approach which supports shadowed
passwords (even though daemon runs as non-root) by sending requests to
a daemon on the machine which does nothing but password lookups (and
runs as root). Usual caveats follows in building a secure interface.

Might be a reasonably portable approach if modified nnrpd to do something
like that?

-Dan

Re: INN 1.7.2 & passwords in nnrp.access
#24419
Author: Jeremy
Date: Tue, 16 Dec 1997 00:00
25 lines
1402 bytes
Todd Faulkner <comstar@vnet.net> wrote:

> I am running inn-1.7.2 under Solaris 2.6 on a sparc 20. I want to 
> be able to setup username and password verification for news server
> access. I want inn to check the passwd & shadow files for user access.
> 
> I setup the nnrp.access file like this:
> 
> 166.82.*:Read Post:+:+:
> 
> According to the FAQ that should make the user enter a valid username
> and password. It does require them to enter one, but always fails.

If you're using shadowed passwords, it will fail, because only root
can read the shadow file and nnrpd is running as news.

I don't know if there's a fix for this other than hacking the code
or not using shadowed passwords.

-- 
Jeremy  |  jeremy@exit109.com
The customer is always right, until he tries to say something.

Re: INN 1.7.2 & passwords in nnrp.access
#24425
Author: Mike Wilson
Date: Tue, 16 Dec 1997 00:00
35 lines
1675 bytes
Todd Faulkner wrote:
> 
> I setup the nnrp.access file like this:
> 
> 166.82.*:Read Post:+:+:
> 
> According to the FAQ that should make the user enter a valid username
> and password. It does require them to enter one, but always fails.
> 
> Is there something I have to do at compile time, or is it something wierd
> with inn and solaris??
> 
> Any help would be appreciated.

If I am not mistaken the shadow files are readable only to root and the
nnrpd is launched by news so you can't get a valid password read on a
solaris machine unless you punch the crypted password in the old
password field in /etc/passwd. I imagine it still works on older sunos
password files.


-- 

---
Mike Wilson

To defeat the spam attacks I've decided to place the email
addresses I've been forwarding all my spam to in the hopes
that the spammers will send it directly to them. So, in no
peticular order: no-spam@flash.net, abuse@flash.net, 
scott@flash.net, postmaster@flash.net, 
leethur@flash.net, root@flash.net

Re: INN 1.7.2 & passwords in nnrp.access
#24447
Author: Nate Shockey
Date: Wed, 17 Dec 1997 00:00
33 lines
1673 bytes
Todd Faulkner wrote:
> 
> Hello,
> 
> I am running inn-1.7.2 under Solaris 2.6 on a sparc 20. I want to
> be able to setup username and password verification for news server
> access. I want inn to check the passwd & shadow files for user access.
> 
> I setup the nnrp.access file like this:
> 
> 166.82.*:Read Post:+:+:
> 
> According to the FAQ that should make the user enter a valid username
> and password. It does require them to enter one, but always fails.
> 
> Is there something I have to do at compile time, or is it something wierd
> with inn and solaris??
> 
> Any help would be appreciated.

	Actually, we run Solaris and do password verification like that.  I
wrote a patch, and unfortunately don't have it handy at the moment,
but I will post in when I get back to work in a couple of days. ;)
 
> Todd Faulkner
> comstar@vnet.net
 
____ _______					__________________
Nate Shockey					underdog@flash.net	
News Administrator				FlashNet Communications

Re: INN 1.7.2 & passwords in nnrp.access
#24463
Author: Chris Bellomy
Date: Thu, 18 Dec 1997 00:00
26 lines
1748 bytes
Mike Wilson <mwilson@flash.net> wrote:
> > > If I am not mistaken the shadow files are readable only to root and the
> > > nnrpd is launched by news so you can't get a valid password read on a
> > > solaris machine unless you punch the crypted password in the old
> > > password field in /etc/passwd. I imagine it still works on older sunos
> > > password files.
>
> >         Actually, there is another solution... the patch is forthcoming.. ;)
>
> 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.

-- 
Chris Bellomy				FlashNet Communications
VP of System Operations 		Fort Worth, Texas
cbellomy@flash.net			(817)332-8883

Re: INN 1.7.2 & passwords in nnrp.access
#24465
Author: Mike Wilson
Date: Thu, 18 Dec 1997 00:00
35 lines
2040 bytes
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?).


-- 

---
Mike Wilson

To defeat the spam attacks I've decided to place the email
addresses I've been forwarding all my spam to in the hopes
that the spammers will send it directly to them. So, in no
peticular order: no-spam@flash.net, abuse@flash.net, 
scott@flash.net, postmaster@flash.net, 
leethur@flash.net, root@flash.net

Re: INN 1.7.2 & passwords in nnrp.access
#24471
Author: Mike Wilson
Date: Thu, 18 Dec 1997 00:00
21 lines
1399 bytes
> > If I am not mistaken the shadow files are readable only to root and the
> > nnrpd is launched by news so you can't get a valid password read on a
> > solaris machine unless you punch the crypted password in the old
> > password field in /etc/passwd. I imagine it still works on older sunos
> > password files.

>         Actually, there is another solution... the patch is forthcoming.. ;)


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.

-- 

---
Mike Wilson

Re: INN 1.7.2 & passwords in nnrp.access
#24472
Author: Nate Shockey
Date: Thu, 18 Dec 1997 00:00
35 lines
1689 bytes
Mike Wilson wrote:
> 
> Todd Faulkner wrote:
> >
> > I setup the nnrp.access file like this:
> >
> > 166.82.*:Read Post:+:+:
> >
> > According to the FAQ that should make the user enter a valid username
> > and password. It does require them to enter one, but always fails.
> >
> > Is there something I have to do at compile time, or is it something wierd
> > with inn and solaris??
> >
> > Any help would be appreciated.
> 
> If I am not mistaken the shadow files are readable only to root and the
> nnrpd is launched by news so you can't get a valid password read on a
> solaris machine unless you punch the crypted password in the old
> password field in /etc/passwd. I imagine it still works on older sunos
> password files.
> 
> --
> 
> ---
> Mike Wilson

	Actually, there is another solution... the patch is forthcoming.. ;)
 
____ _______					__________________
Nate Shockey					underdog@flash.net	
News Administrator				FlashNet Communications

Re: INN 1.7.2 & passwords in nnrp.access
#24474
Author: Aidan Cully [Staff]
Date: Thu, 18 Dec 1997 00:00
41 lines
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

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads