Thread View: news.software.nntp
9 messages
9 total messages
Started by Paul
Tue, 25 Apr 2000 00:00
inn and nntp authorisation
Author: Paul
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
18 lines
1413 bytes
1413 bytes
Hi, Is there a way in inn 2.2 to set up unique username/password combo's for user validation? I know /usr/local/news/etc/password.nntp offers password authentication but as far as I can tell you can't let it like access a username/password file, or enter a whole slew of userid/password combo's. Also I noticed in the 'sender' header the username as entered in password.nntp shows up as the userid instead of the real user name. Which may give half the game away already. :-) Thanks for any suggestions. -- __ /_/ Creator/Maintainer /aul "A Deamon's Guide To FreeBSD" http://homes.acmecity.com/looneytunes/lunar/315/
Re: inn and nntp authorisation
Author: Russ Allbery
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
20 lines
1330 bytes
1330 bytes
Paul <esealp@maps.on> writes: > Is there a way in inn 2.2 to set up unique username/password combo's for > user validation? Sure, you can enter as many as you want in nnrp.access, or tell it to use the system passwd file. > I know /usr/local/news/etc/password.nntp offers password authentication > but as far as I can tell you can't let it like access a > username/password file, or enter a whole slew of userid/password > combo's. passwd.nntp isn't used for reader access; that's for authentication to other news servers. Or at least that's the main purpose for it. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: inn and nntp authorisation
Author: Paul
Date: Wed, 26 Apr 2000 00:00
Date: Wed, 26 Apr 2000 00:00
39 lines
1978 bytes
1978 bytes
Russ Allbery [rra@stanford.edu] wrote in <ylhfcp6a1v.fsf@windlord.stanford.edu>: >Sure, you can enter as many as you want in nnrp.access, or tell it to >use the system passwd file. I tried using the 'external file' open in nnrp.access but am failing to get it to work. It says the 'same format as this' so I a line in the nnrp.access file like: 192.168.1.*:/usr/local.news/etc/passwords Said file contains lines like this: 192.168.1.*:Read Post:user1:password1:* 192.168.1.*:Read Post:user2:password2:* [..] etc. I must be doing something wrong, but I'm failing to see what. But can it use the FreeBSD system password file with it's encrypted passwords and all? if so, could you enlighten me as to how, that woudl make life a lot easier. >passwd.nntp isn't used for reader access; that's for authentication to >other news servers. Or at least that's the main purpose for it. Sorry, I meant to write nnrp.access there as well. I got confused. :-) Thanks -- __ /_/ Creator/Maintainer /aul "A Deamon's Guide To FreeBSD" http://homes.acmecity.com/looneytunes/lunar/315/
Re: inn and nntp authorisation
Author: Russ Allbery
Date: Wed, 26 Apr 2000 00:00
Date: Wed, 26 Apr 2000 00:00
42 lines
2248 bytes
2248 bytes
Paul <esealp@maps.on> writes:
> I tried using the 'external file' open in nnrp.access but am failing to
> get it to work. It says the 'same format as this' so I a line in the
> nnrp.access file like:
> 192.168.1.*:/usr/local.news/etc/passwords
> Said file contains lines like this:
> 192.168.1.*:Read Post:user1:password1:*
> 192.168.1.*:Read Post:user2:password2:*
> [..]
> etc.
I definitely don't understand the external file thing and have never used
it; the man page seems a bit opaque on the subject. Does it work if you
include those lines directly in nnrp.access?
> But can it use the FreeBSD system password file with it's encrypted
> passwords and all? if so, could you enlighten me as to how, that woudl
> make life a lot easier.
It can....
If the third field is ``+'', then nnrpd(8) uses crypt(3) to
authenticate passed username and password. This might not work on
systems that use a shadow password file, since nnrpd normally doesn't
have the permissions to read that file. If nnrpd is started in
standalone mode, it tries to adjust its permissions so that it can
read the shadow file. See also the -g option in the manual page for
nnrpd(8).
Note the caveats, though. You may have to do some fiddling with the
permissions on the shadow password file and/or the setgid bit on nnrpd, or
start nnrpd as root in standalone mode and use -g.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: inn and nntp authorisation
Author: Paul
Date: Thu, 27 Apr 2000 00:00
Date: Thu, 27 Apr 2000 00:00
32 lines
2212 bytes
2212 bytes
Russ Allbery [rra@stanford.edu] wrote in <ylu2goshie.fsf@windlord.stanford.edu>: >I definitely don't understand the external file thing and have never >used it; the man page seems a bit opaque on the subject. Does it work >if you include those lines directly in nnrp.access? That makes two of us, maybe a rewrite is in order? ;) But yes, if I add those lines in nnrp.access it does work. So that problem is solved. It's not to hard to make a script to add user/password combo's to there and call ctlinnd reload "" "" to reload config files. (It seems 2.2 ctlinnd does not like 'ctlinnd reload nnrp.access x' as it tells me 'Unknown reload type'. :-) And if I do not reload, new users added to nnrp.access are not recognized it seems. >Note the caveats, though. You may have to do some fiddling with the >permissions on the shadow password file and/or the setgid bit on >nnrpd, or start nnrpd as root in standalone mode and use -g. Hmmm, FreeBSD 3.4 uses a shadow password file and I rather not mess with th permissions as I'm not wholly sure about security risks of doing this. The above trick will do just fine. Thanks! -- __ /_/ Creator/Maintainer /aul "A Deamon's Guide To FreeBSD" http://homes.acmecity.com/looneytunes/lunar/315/
Re: inn and nntp authorisation
Author: Arne K. Haaje
Date: Thu, 27 Apr 2000 00:00
Date: Thu, 27 Apr 2000 00:00
40 lines
2552 bytes
2552 bytes
On 27 Apr 2000 13:15:53 GMT, Paul <esealp@maps.on> wrote: >Russ Allbery [rra@stanford.edu] wrote in ><ylu2goshie.fsf@windlord.stanford.edu>: > > >>I definitely don't understand the external file thing and have never >>used it; the man page seems a bit opaque on the subject. Does it work >>if you include those lines directly in nnrp.access? > >That makes two of us, maybe a rewrite is in order? ;) But yes, if I add >those lines in nnrp.access it does work. So that problem is solved. It's >not to hard to make a script to add user/password combo's to there and >call ctlinnd reload "" "" to reload config files. (It seems 2.2 ctlinnd >does not like 'ctlinnd reload nnrp.access x' as it tells me 'Unknown >reload type'. :-) And if I do not reload, new users added to nnrp.access >are not recognized it seems. > >>Note the caveats, though. You may have to do some fiddling with the >>permissions on the shadow password file and/or the setgid bit on >>nnrpd, or start nnrpd as root in standalone mode and use -g. > >Hmmm, FreeBSD 3.4 uses a shadow password file and I rather not mess with >th permissions as I'm not wholly sure about security risks of doing this. >The above trick will do just fine. > The shadow file should only be read- and writeable for root. If you make it readable for others, then there is not much point with shadow passwords. Arne -- -------------------------------- Arne K. Haaje | T: 69 92 04 90 Enebakkveien 2 | F: 69 92 04 91 1625 Tomter | M: 92 88 44 66 --------------------------------
Re: inn and nntp authorisation
Author: Russ Allbery
Date: Thu, 27 Apr 2000 00:00
Date: Thu, 27 Apr 2000 00:00
18 lines
1644 bytes
1644 bytes
Arne K Haaje <arne@drlinux.no> writes: > The shadow file should only be read- and writeable for root. If you make > it readable for others, then there is not much point with shadow > passwords. Not entirely true; it's reasonably secure to make it readable by a special group, like group shadow, and only have password checking programs setgid to group shadow and have no users in that group. It's probably *more* secure to do this than to leave it readable only by root and make your password checking programs setuid root; at least this way, if one of those programs is poorly written, the most you can get is access to the encrypted passwords rather than full and immediate root access. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: inn and nntp authorisation
Author: Russ Allbery
Date: Thu, 27 Apr 2000 00:00
Date: Thu, 27 Apr 2000 00:00
29 lines
1834 bytes
1834 bytes
Paul <esealp@maps.on> writes: > Russ Allbery [rra@stanford.edu] wrote: >> I definitely don't understand the external file thing and have never >> used it; the man page seems a bit opaque on the subject. Does it work >> if you include those lines directly in nnrp.access? > That makes two of us, maybe a rewrite is in order? ;) nnrp.access is gone completely in 2.3 in favor of readers.conf; that's one of the reasons why I don't understand it as well. :) > But yes, if I add those lines in nnrp.access it does work. So that > problem is solved. It's not to hard to make a script to add > user/password combo's to there and call ctlinnd reload "" "" to reload > config files. You don't need to reload nnrp.access; nnrpd reads it on startup. > And if I do not reload, new users added to nnrp.access are not > recognized it seems. That would surprise me, unless you were testing against an already running nnrpd.... -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: inn and nntp authorisation
Author: Paul
Date: Fri, 28 Apr 2000 00:00
Date: Fri, 28 Apr 2000 00:00
20 lines
1616 bytes
1616 bytes
Russ Allbery [rra@stanford.edu] wrote in <yld7nbnp3k.fsf@windlord.stanford.edu>: >You don't need to reload nnrp.access; nnrpd reads it on startup. >That would surprise me, unless you were testing against an already >running nnrpd.... Yes I was. :) Hmmm, seems inn 2.3 may be the way to go then. I figured better to be safe than sorry and grabbed inn-stable out of the FreeBSD ports repository. Which turned out to be 2.2. It just went from testing to production today. :-) -- __ /_/ Creator/Maintainer /aul "A Deamon's Guide To FreeBSD" http://homes.acmecity.com/looneytunes/lunar/315/
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