🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #72345

Re: Authentication advice

#72345
From: John F. Morse
Date: Thu, 29 Sep 2005 04:35
197 lines
8671 bytes
Jeffrey M. Vinocur wrote:

>In article <CqTZe.81538$qY1.40661@bgtnsc04-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>  
>
>All of the above :-)
>
>Radius support exists in INN for a specific use, namely ISP
>outsourcing.  It works like this:  ISPs A, B, and C are too small
>to run their own fullfeed NNTP servers, but want to offer their
>users Usenet access.  They arrange for a third-party NNTP
>reseller X to provide this service to their users.  But the ISPs
>each have their own password databases, and X has to be able to
>verify passwords against them.  So the way it works is, each ISP
>runs a radius server.  When a client appearing to be from ISP A
>connects to X's server, the server takes the client username and
>password and asks A's radius server if they are correct.
>Similarly for clients from B and C.
>
>So while you -could- use radius for your personal server, it is
>unlikely to be worth your while.  As Bill points out, if you were
>running multiple servers all with the same user database, it
>could be useful, but for a single server, there's really no
>point.
>  
>


Understood. Maybe someday I will need more than one server, and this is 
valuable info. Many thanks.


>>My current RumorMill NNTP server has [...]
>>    
>>
>
>Ah ha!
>
>Your conceptualization sounds great, and you can easily do this
>with INN.
>  
>


I told someone today that INN's configuration and flexibility just might 
be the reason so many Windows (and Mac) users think Linux/Unix is so 
complicated. That INN could be configured so many different ways that it 
probably could be optioned to manufacture a kitchen sink, or slice 
bread. ;-)


>>However I do want to use SSL to protect the user's passwords from 
>>possible sniffers. They should have no trouble with SSL if they use a 
>>modern news client. Those which do not support SSL can be passed through 
>>Stunnel.
>>    
>>
>
>Okay...you can take this route if you like, but I think you'll be
>surprised at how few clients have adequate SSL support.
>(Hopefully this will change in the future as standards in this
>area are published.)
>
>For what it's worth, as long as you caution users not to use the
>same passwords for this as any other service, I think it's not
>unreasonable to allow unencrypted connections.  (Consider that if
>you used mailing lists instead of newsgroups, all the messages
>would be sent unencrypted across the network, subscriptions would
>take place using passwords send in plaintext email, etc.)
>  
>


Yes, you are correct. Trying to get users to use strong passwords is 
difficult. Examining those that I have shows patterns in some of them. I 
could probably hack them using the password they provided me, or 
something very similar.

Surprisingly though, some of the users provided passwords that I had 
trouble entering without any typos. These were not the Windows users. Is 
there a security pattern here? ;-)

Typical users have either OE, Thunderbird or Mozilla, and these popular 
clients have SSL in them. Rarely if ever do they use Agent, Xnews and 
Gravity, which would require Stunnel. I sometimes use Agent or Xnews, 
through Stunnel, for large binary groups.

To my knowledge, we no longer have any Mac users, other than me 
occasionally, and only two other Linux users. The Linux users are smart 
enough to use whatever they need.

I generally use Mozilla or Thunderbird, but often use Pan or Knode, 
depending on whichever computer I'm using. Using Moz/T-Bird makes 
archiving over the years much easier.

My server's groups are not restricted to text or bottom posting. You 
will find many graphics, some animated, and even an occasional MIDI.


>>Another thought I've had is the possibility of a user being hacked (most 
>>run M$ Windoze, so this is not unlikely). A hacker could steal account 
>>information, then create problems while impersonating a real user.
>>    
>>
>
>I've never heard of this happening.  I suppose it's possible that
>someone would set out to purposefully target one of your users,
>but I wouldn't spend too much time preparing for it.
>  
>


My worry is more about targeting the news server than a user. Since most 
use Windows, there is always that threat that a Trojan will start up a 
zombie server in the middle of the night, and send these Windows users' 
files to the hacker.

I get a little spam on a new e-mail account on my e-mail server. My 
domain is not well known, and the only people who had the new e-mail 
address were news server users and personal friends. Someone with it has 
had their address book plundered and sent out because they didn't care 
enough about security. I know it isn't a dictionary attack because the 
daily review of rejected messages show no other similar spam attempts.


>Right, htpasswd doesn't take a file like that as input.  The
>"normal" use is to add users one at a time on a commandline.  And
>you're right, I don't think it knows about extra fields on the
>end, although many people find them useful.
>
>But hey, you use unix, so no harm done.  Here's a little script
>that will take the file you have now, encrypt each password, and
>output the result:
>
>    #!/usr/bin/perl -w
>    
>    use strict;
>    
>    while( <> ) {
>      chomp;
>      if( my ($user,$pass,$rest) = /([^:]*):([^:]*)(:?.*)/ ) {
>        my $out = `htpasswd -ndb $user $pass`;
>        $out =~ s/\s*$//;
>        print "$out$rest\n";
>      } else {
>        warn "Unable to parse: \"$_\"";
>      }
>    }
>  
>

This is great info! I'll be trying it hopefully tomorrow. (So many 
honey-dos, ... then you die.) ;-)


>>I really do appreciate your time.
>>    
>>
>
>Glad to be of service.
>
>I hang out here specifically to answer questions, and you're
>clearly putting in your share of effort, so it's a pleasure to
>help.
>

I have been busy the past two days. The messages I posted Monday morning 
were not showing up on the server, nor propagating to the other servers. 
There was no INN e-mail summary so I did a little checking.

The logs had error messages "tradspool: could not open ... File exists" 
so I did some investigating and figured something happened to the 
overview. Perhaps I rebooted Sunday night and INN didn't flush the info 
to disk. I don't know. Does INN need to be manually throttled first?

Anyway, paragraph 4.4 at http://www.eyrie.org/~eagle/faqs/inn.html was 
followed, and this fixed the groups. It took quite awhile to go through 
each group and verify that it was repaired.

This Eagle faq apparently has an error that I managed to work around. It 
states after the tdx-util "Immediately afterwards, run ctlinnd renumber 
for that newsgroup, and then unthrottle the server."

Well, with the server throttled it wouldn't renumber, so I had to "go" 
it, then renumber.

Then I discovered the hosts file had that localhost.localdomain back in 
it. How this happened I don't have a clue.

So, yes, I'm putting in some pain and effort, but I don't mind. I love 
to learn, and there may be no better way than the U. of Hard Knocks.

Thanks again.

-- 
John
Technical Details
Message-ID: <caK_e.335352$5N3.316417@bgtnsc05-news.ops.worldnet.att.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wn12feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
References: <2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET> <e90d4$4335d25a$4097152a$3064@EVERESTKC.NET> <dh71qj$q1b$3@puck.litech.org> <CqTZe.81538$qY1.40661@bgtnsc04-news.ops.worldnet.att.net> <dh9o4t$jmk$1@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <caK_e.335352$5N3.316417@bgtnsc05-news.ops.worldnet.att.net>
Subject: Re: Authentication advice
Date: Thu, 29 Sep 2005 04:35:20 GMT
From: "John F. Morse" <xanadu.bbs@invalid.net>
References: <2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET> <e90d4$4335d25a$4097152a$3064@EVERESTKC.NET> <dh71qj$q1b$3@puck.litech.org> <CqTZe.81538$qY1.40661@bgtnsc04-news.ops.worldnet.att.net> <dh9o4t$jmk$1@puck.litech.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wn12feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
Reply-To: xanadu.bbs@invalid.net
Organization: Xanadu BBS
User-Agent: Debian Thunderbird 1.0.2 (X11/20050331)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: news.software.nntp
In-Reply-To: <dh9o4t$jmk$1@puck.litech.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 197
NNTP-Posting-Host: 5859688daf4f079ae2082d827b7299fb
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 1127968520
NNTP-Posting-Date: Thu, 29 Sep 2005 04:35:20 GMT