Thread View: news.software.nntp
56 messages
56 total messages
Page 1 of 2
Started by John F. Morse
Sat, 24 Sep 2005 19:50
Page 1 of 2 • 56 total messages
Authentication advice
Author: John F. Morse
Date: Sat, 24 Sep 2005 19:50
Date: Sat, 24 Sep 2005 19:50
31 lines
2211 bytes
2211 bytes
I've hosted several local newsgroups for about five years on three RumorMill NNTP servers running on Macs. Recently I had to lock out the public and change over to a USERNAME and PASSWORD authentication, which is built into RumorMill. For the past month I've been testing INN 2.4.2-3, posting directly to it from other Linux boxes on the LAN, as well as configuring it to peer (stream) with one of my Mac slave servers. It's working great, handling around 100 articles per day and expiring without any trouble. Now it is time to configure it for authentication, and then SSL. I've poured over several documents to try and determine what may be the easiest and best (if not an oxymoron) authentication to use. I've read about ckpasswd and ident as well as radius. It seems using readers.conf would be a big headache to maintain. Any thoughts or suggestions on these, or some other software? My user database is encrypted in the Mac, so I will need to enter every users USERNAME and PASSWORD by hand, preferably by using an existing textfile. Presently there are only about 30 users, and they are all over the world, from many different domains. TIA. -- John
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Sat, 24 Sep 2005 20:41
Date: Sat, 24 Sep 2005 20:41
55 lines
2724 bytes
2724 bytes
In article <2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>For the past month I've been testing INN 2.4.2-3 [...]
>
>I've read about ckpasswd and ident as well as radius. It seems using
>readers.conf would be a big headache to maintain. Any thoughts or
>suggestions on these, or some other software?
I think you're a bit confused. You use readers.conf to tell INN
when to use ckpasswd or ident or radius. So you'll need to put
in the time to understand readers.conf a little bit regardless of
what you choose. As long as you're allowing all authenticated
users access to all of the groups, you won't need to do anything
crazy with readers.conf.
>My user database is encrypted in the Mac, so I will need to enter every
>users USERNAME and PASSWORD by hand, preferably by using an existing
>textfile.
>
>Presently there are only about 30 users, and they are all over the
>world, from many different domains.
Okay, you should definitely use readers.conf with ckpasswd.
There is no role for ident or radius in your situation.
Your readers.conf should be very simple, like this:
auth everyone {
hosts: "*"
auth: "ckpasswd -f /path/to/user-database"
}
access {
users: "*"
newsgroups: "*,!junk,!control,!control.*"
}
And then your user-database file should be like this:
johnsmith:j803asdf29
suebrown:la390fas3
mikejohnson:p3a0jxzmli
Where the second field is the encrypted password (in regular unix
fashion). The easiest way to mainting this file is to use the
"htpasswd" tool which is probably already installed on your
machine as part of Apache. See `man htpasswd` for details.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
Author: John F. Morse
Date: Sat, 24 Sep 2005 22:25
Date: Sat, 24 Sep 2005 22:25
93 lines
4411 bytes
4411 bytes
Thanks for the quick reply.
Jeffrey M. Vinocur wrote:
> In article <2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET>,
> John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>>For the past month I've been testing INN 2.4.2-3 [...]
>>
>>I've read about ckpasswd and ident as well as radius. It seems using
>>readers.conf would be a big headache to maintain. Any thoughts or
>>suggestions on these, or some other software?
>
>
> I think you're a bit confused. You use readers.conf to tell INN
> when to use ckpasswd or ident or radius. So you'll need to put
> in the time to understand readers.conf a little bit regardless of
> what you choose. As long as you're allowing all authenticated
> users access to all of the groups, you won't need to do anything
> crazy with readers.conf.
I'm more than a bit confused. ;-)
I believe I read that readers.conf can authenticate a password, but I
said it would be a headache because many different usernames and
passwords would be better implemented by some other authentication method.
>>My user database is encrypted in the Mac, so I will need to enter every
>>users USERNAME and PASSWORD by hand, preferably by using an existing
>>textfile.
>>
>>Presently there are only about 30 users, and they are all over the
>>world, from many different domains.
>
>
> Okay, you should definitely use readers.conf with ckpasswd.
> There is no role for ident or radius in your situation.
My situation will be changing. Right now I'm testing with the existing
server(s), but soon I plan on providing open access for one, maybe more
access groups, then authenticated access for one or more access groups,
while maintaining multiple slave servers.
Does your statement still hold to use ckpasswd as the best choice should
I grow?
> Your readers.conf should be very simple, like this:
>
> auth everyone {
> hosts: "*"
> auth: "ckpasswd -f /path/to/user-database"
> }
>
> access {
> users: "*"
> newsgroups: "*,!junk,!control,!control.*"
> }
>
> And then your user-database file should be like this:
>
> johnsmith:j803asdf29
> suebrown:la390fas3
> mikejohnson:p3a0jxzmli
This looks very simple, but who should own this file, what access
permissions (note ckpasswd(5) -s setgid security warning), and in what
directory should it reside (where should "user-database" be)?
> Where the second field is the encrypted password (in regular unix
> fashion). The easiest way to mainting this file is to use the
> "htpasswd" tool which is probably already installed on your
> machine as part of Apache. See `man htpasswd` for details.
MD5 with PAM, or crypt?
Jeff, I have all of these docs and man pages. I've read them over and
over for the last 10 days, until I'm blue in the face. The Debian 3.1r0a
Synaptic install of INN 2.4.2-3 does not put some files in the
directories that match those in the various docs. I have to fly by the
seat of my pants, often trying my best guess several different ways.
Please bear with me while I ask for and receive good advice. This will
help me learn the many pieces of INN so I can reconfigure it in the
future. It will also prepare me to help others.
--
John
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Sun, 25 Sep 2005 20:37
Date: Sun, 25 Sep 2005 20:37
92 lines
5072 bytes
5072 bytes
In article <e90d4$4335d25a$4097152a$3064@EVERESTKC.NET>, John F. Morse <xanadu.bbs@invalid.net> wrote: > >I believe I read that readers.conf can authenticate a password, but I >said it would be a headache because many different usernames and >passwords would be better implemented by some other authentication method. Hmm. I'm not sure I follow here. Perhaps you could describe a hypothetical system that would be ideal for you, if you were hiring a consultant to rewrite INN to meet your needs? >My situation will be changing. Right now I'm testing with the existing >server(s), but soon I plan on providing open access for one, maybe more >access groups, then authenticated access for one or more access groups, >while maintaining multiple slave servers. > >Does your statement still hold to use ckpasswd as the best choice should >I grow? I think so. Let me explain further. The paradigm used by readers.conf is to separate (1) determining the identity of the user connecting from (2) determing what groups a given user should have access to. Understanding this paradigm is what gives people the most trouble. With regard to #1, there are several ways (which can be mixed) for determining a user's identity, including: you can assign it based on incoming IP address, you can query that source machine for ident information if you trust the answer you will receive, or you can prompt for username/password. If you go with username/password, then you have several options for determing if the supplied password is correct, including: looking it up in the unix system's password database as if it were an incoming ssh connection, looking it up in a separately-maintained file, and handing it off to a preexisting standalone radius server. For you, it sounds like your users are too spread out to be able to use IP address or ident information useful, so usernames and passwords are appropraite. The option that most closely approximates your previous software is to use ckpasswd to look them up in a separately-maintained file. None of this impacts #2, although I don't quite understand who you want to give "open access" to. >This looks very simple, but who should own this file, what access >permissions (note ckpasswd(5) -s setgid security warning), and in what >directory should it reside (where should "user-database" be)? You aren't using -s, so those warnings don't apply. (That's only if you want to use the regular system database to store your users, e.g. to have people using the same passwords for ssh and news access, which isn't anything you seem interested in.) So the file needs to be readable by the news user, and not readable by other people. You can store it anywhere you like -- the only thing INN cares about is that you specify the path in the ckpasswd command in readers.conf. So if you want to put it in ~news/etc/, that's reasonable, but you can put it anywhere your local system configuration dictates. >MD5 with PAM, or crypt? crypt. >Jeff, I have all of these docs and man pages. I've read them over and >over for the last 10 days, until I'm blue in the face. The Debian 3.1r0a >Synaptic install of INN 2.4.2-3 does not put some files in the >directories that match those in the various docs. I have to fly by the >seat of my pants, often trying my best guess several different ways. Yes, unfortunately some distributions repackage INN with files in atypical locations and then do not update the documentation. I have no good advice to offer for this case, except to say that you're free to ditch the package and compile from source. >Please bear with me while I ask for and receive good advice. This will >help me learn the many pieces of INN so I can reconfigure it in the >future. It will also prepare me to help others. No problem. -- Jeffrey M. Vinocur jeff@litech.org
Re: Authentication advice
Author: John F. Morse
Date: Mon, 26 Sep 2005 14:18
Date: Mon, 26 Sep 2005 14:18
210 lines
9783 bytes
9783 bytes
Jeffrey M. Vinocur wrote: >In article <e90d4$4335d25a$4097152a$3064@EVERESTKC.NET>, >John F. Morse <xanadu.bbs@invalid.net> wrote: > > >>I believe I read that readers.conf can authenticate a password, but I >>said it would be a headache because many different usernames and >>passwords would be better implemented by some other authentication method. >> >> > >Hmm. I'm not sure I follow here. Perhaps you could describe a >hypothetical system that would be ideal for you, if you were >hiring a consultant to rewrite INN to meet your needs? > > I was saying that I thought I had read where readers.conf could be configured with a username and password (or a list of them), in multiple access stanzas. I thought that if this type of access "list" were used, it would be a nightmare to keep current. The ckpasswd method is the best I have found, and that is what I will use since you also agreed. I didn't mean to imply that I wanted anything rewritten or added. I just wanted to find the best available method for me, which you confirmed with ckpasswd. Please forget this part as it is a non-issue. >>My situation will be changing. Right now I'm testing with the existing >>server(s), but soon I plan on providing open access for one, maybe more >>access groups, then authenticated access for one or more access groups, >>while maintaining multiple slave servers. >> >>Does your statement still hold to use ckpasswd as the best choice should >>I grow? >> >> > >I think so. Let me explain further. > >The paradigm used by readers.conf is to separate (1) determining >the identity of the user connecting from (2) determing what >groups a given user should have access to. Understanding this >paradigm is what gives people the most trouble. > >With regard to #1, there are several ways (which can be mixed) >for determining a user's identity, including: you can assign it >based on incoming IP address, you can query that source machine >for ident information if you trust the answer you will receive, >or you can prompt for username/password. If you go with >username/password, then you have several options for determing if >the supplied password is correct, including: looking it up in >the unix system's password database as if it were an incoming ssh >connection, looking it up in a separately-maintained file, and >handing it off to a preexisting standalone radius server. > > I understand the IP and FQDN access, and as you correctly noted, I could not use it due to the users spread. Many use a DHCP ISP assignment, and those on DSL and cable are also dynamic, although a cable IP can live for years. I saw the radius method, and thought it might work. The Debian Synaptic package manager shows several radius servers are available (freeradius, radiusd-cistron, radiusd-livingston, xradius, yardradius). Did you recommend ckpasswd over radius for any particular reason (simplicity, speed, familiarity, etc.)? >For you, it sounds like your users are too spread out to be able >to use IP address or ident information useful, so usernames and >passwords are appropraite. The option that most closely >approximates your previous software is to use ckpasswd to look >them up in a separately-maintained file. > >None of this impacts #2, although I don't quite understand who >you want to give "open access" to. > > My current RumorMill NNTP server has five groups (plus test, local.test and the control groups). The users were formerly using the Ft. Worth Star-Telegram NNTP server, which closed down in early 2001. Prior to this, the newsmaster who created the FW S-T news server moved to the Dallas Morning News. He was asked and then added one FW S-T group, Brisbee, a virtual city. The DMN ran an HTTP-based forum, and everyone hated it. So I fired up the RumorMill NNTP server, and created four of the old FW S-T groups, plus one from a defunct Kansas City Star NNTP server. The FW S-T and the KC Star are both Knight-Ridder rags, and I think they realized there is no income in NNTP, only expenses in maintaining it. As I previously mentioned, I had to lock down the server a couple of months ago due to abuse (username and password is now required). I have desired for several years to also have a server for the general public to use. It will be based on a ministry that a friend operates. Naturally we don't want to force people to jump through hoops to access whatever religious groups are created. This "open access" area could also be used to announce (in a read-only group) the instructions for accessing the "closed access" portion. Such as who to e-mail with a username and password choice. I ran a multi-node dial-up BBS for about ten years before the Internet took away all the users. <g> In 2001 I closed it down after I had the NNTP server running for a few months. It provided an ANSI graphics "welcome screen" that anyone could read. This gave information on how to obtain an account for access, etc. Since NNTP provides no such welcome (well, you can use telnet and sometimes get some info), I thought a non-authentication, read-only group could be used to supply access instructions. I would prefer one computer, running INN, take care of all NNTP, instead of running multiple computers. If you have a better idea, I'm all ears. <g> >>This looks very simple, but who should own this file, what access >>permissions (note ckpasswd(5) -s setgid security warning), and in what >>directory should it reside (where should "user-database" be)? >> >> > >You aren't using -s, so those warnings don't apply. (That's only >if you want to use the regular system database to store your >users, e.g. to have people using the same passwords for ssh and >news access, which isn't anything you seem interested in.) > > I take this to mean user accounts? No, I don't want to create hundreds of users. <g> 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. 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'll just need to keep an eye (a "feel") on messages, and if I suspect something, I can change the user's password. That would be far easier than trying to configure a FQDN or IP range in readers.conf for a specific user who has a dynamic ISP IP assignment. >So the file needs to be readable by the news user, and not >readable by other people. You can store it anywhere you like -- >the only thing INN cares about is that you specify the path in >the ckpasswd command in readers.conf. So if you want to put it >in ~news/etc/, that's reasonable, but you can put it anywhere >your local system configuration dictates. > > I'll stick in /var/spool/news where Debian created news' home directory. I have the file set up as "username:password:Real Name" now, but I don't understand how to encrypt it with htpasswd -- as a single batch. I sure wouldn't want to retype all of the entries. The man htpasswd does not explain how to do the encryption on a textfile, nor can I figure out how it would know to only encrypt the data after the first colon, and stop at the second colon. Maybe I'm not understanding it? Does it encrypt everything, or just the password? >Yes, unfortunately some distributions repackage INN with files in >atypical locations and then do not update the documentation. I >have no good advice to offer for this case, except to say that >you're free to ditch the package and compile from source. > > Each problem's solution seems to create two new questions -- at least. I think I'll fix the issues, one by one, instead of starting from scratch, or I may never get it working. <g> >>Please bear with me while I ask for and receive good advice. This will >>help me learn the many pieces of INN so I can reconfigure it in the >>future. It will also prepare me to help others. >> >> > >No problem. > > I really do appreciate your time. -- John
Re: Authentication advice
Author: Bill Davidsen
Date: Mon, 26 Sep 2005 18:08
Date: Mon, 26 Sep 2005 18:08
169 lines
9348 bytes
9348 bytes
John F. Morse wrote: rstand the IP and FQDN access, and as you correctly noted, I could > not use it due to the users spread. Many use a DHCP ISP assignment, and > those on DSL and cable are also dynamic, although a cable IP can live > for years. > > I saw the radius method, and thought it might work. The Debian Synaptic > package manager shows several radius servers are available (freeradius, > radiusd-cistron, radiusd-livingston, xradius, yardradius). > > Did you recommend ckpasswd over radius for any particular reason > (simplicity, speed, familiarity, etc.)? radius uses another server application, which means at the very least you need to install, configure, and maintain a radius server. Since the benefit of radius is the ability to have the auth data in one place and the service in another, if you have everything in one place it adds complexity without adding flexibility. If you have multiple servers in many places (I do) and don't want to have the master user database on each (I don't), then radius allows the auth data to be in a different set of locations than the user services. It also adds additional points of failure, the radius servers and the network connection, and where everything is in one place is just more stuff to maintain. > > >> For you, it sounds like your users are too spread out to be able >> to use IP address or ident information useful, so usernames and >> passwords are appropraite. The option that most closely >> approximates your previous software is to use ckpasswd to look >> them up in a separately-maintained file. >> >> None of this impacts #2, although I don't quite understand who >> you want to give "open access" to. >> >> > > > My current RumorMill NNTP server has five groups (plus test, local.test > and the control groups). The users were formerly using the Ft. Worth > Star-Telegram NNTP server, which closed down in early 2001. Prior to > this, the newsmaster who created the FW S-T news server moved to the > Dallas Morning News. He was asked and then added one FW S-T group, > Brisbee, a virtual city. > > The DMN ran an HTTP-based forum, and everyone hated it. So I fired up > the RumorMill NNTP server, and created four of the old FW S-T groups, > plus one from a defunct Kansas City Star NNTP server. The FW S-T and the > KC Star are both Knight-Ridder rags, and I think they realized there is > no income in NNTP, only expenses in maintaining it. > > As I previously mentioned, I had to lock down the server a couple of > months ago due to abuse (username and password is now required). > > I have desired for several years to also have a server for the general > public to use. It will be based on a ministry that a friend operates. > Naturally we don't want to force people to jump through hoops to access > whatever religious groups are created. > > This "open access" area could also be used to announce (in a read-only > group) the instructions for accessing the "closed access" portion. Such > as who to e-mail with a username and password choice. > > I ran a multi-node dial-up BBS for about ten years before the Internet > took away all the users. <g> In 2001 I closed it down after I had the > NNTP server running for a few months. It provided an ANSI graphics > "welcome screen" that anyone could read. This gave information on how to > obtain an account for access, etc. > > Since NNTP provides no such welcome (well, you can use telnet and > sometimes get some info), I thought a non-authentication, read-only > group could be used to supply access instructions. I would prefer one > computer, running INN, take care of all NNTP, instead of running > multiple computers. > > If you have a better idea, I'm all ears. <g> Have a web site, put the intro there, have a link to the newsgroups so people don't even have to know htey're using nntp. ex: <a href="news:news.mydomain.net"><b>enter discussions</b></a><p> (I typed that by hand, but you get the idea). > > >>> This looks very simple, but who should own this file, what access >>> permissions (note ckpasswd(5) -s setgid security warning), and in >>> what directory should it reside (where should "user-database" be)? >>> >> >> >> You aren't using -s, so those warnings don't apply. (That's only >> if you want to use the regular system database to store your >> users, e.g. to have people using the same passwords for ssh and >> news access, which isn't anything you seem interested in.) >> >> > > > I take this to mean user accounts? No, I don't want to create hundreds > of users. <g> > > 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. I can just see your M$ users using Stunnel. How large is your support group? > > 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'll > just need to keep an eye (a "feel") on messages, and if I suspect > something, I can change the user's password. That would be far easier > than trying to configure a FQDN or IP range in readers.conf for a > specific user who has a dynamic ISP IP assignment. Thus the need for a good posting filter. > > >> So the file needs to be readable by the news user, and not >> readable by other people. You can store it anywhere you like -- >> the only thing INN cares about is that you specify the path in >> the ckpasswd command in readers.conf. So if you want to put it >> in ~news/etc/, that's reasonable, but you can put it anywhere >> your local system configuration dictates. It needs to be readable by the authentication program. >> >> > > > I'll stick in /var/spool/news where Debian created news' home directory. > > I have the file set up as "username:password:Real Name" now, but I don't > understand how to encrypt it with htpasswd -- as a single batch. I sure > wouldn't want to retype all of the entries. The man htpasswd does not > explain how to do the encryption on a textfile, nor can I figure out how > it would know to only encrypt the data after the first colon, and stop > at the second colon. > > Maybe I'm not understanding it? Does it encrypt everything, or just the > password? Just the password, the file isn't world readable, the directory is (should be) protected, and the important stuff is encrypted. > > >> Yes, unfortunately some distributions repackage INN with files in >> atypical locations and then do not update the documentation. I >> have no good advice to offer for this case, except to say that >> you're free to ditch the package and compile from source. >> >> > > > Each problem's solution seems to create two new questions -- at least. I > think I'll fix the issues, one by one, instead of starting from scratch, > or I may never get it working. <g> Be glad Jeff is a nice guy, I would have suggested you start by building from source and putting things where it's most convenient for you. I would personally have it all in one filesystem I could easily backup. Every distribution has their own idea where things should go, ignoring the application defaults (which aren't always what I want, either ;-) -- bill davidsen SBC/Prodigy Yorktown Heights NY data center http://newsgroups.news.prodigy.com
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Mon, 26 Sep 2005 21:10
Date: Mon, 26 Sep 2005 21:10
135 lines
6130 bytes
6130 bytes
In article <CqTZe.81538$qY1.40661@bgtnsc04-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>I was saying that I thought I had read where readers.conf could be
>configured with a username and password (or a list of them), in multiple
>access stanzas. I thought that if this type of access "list" were used,
>it would be a nightmare to keep current.
What you describe may be nnrp.access, which is the old system
that readers.conf replaced for the reasons you note.
>I didn't mean to imply that I wanted anything rewritten or added.
I didn't think you did :-)
I was offering it as a hypothetical to help me figure out your
needs. (I find that sometimes people don't understand INN well
enough to ask for the right sort of help.) But it seems we've
got it straightened out.
>I saw the radius method, and thought it might work. The Debian Synaptic
>package manager shows several radius servers are available (freeradius,
>radiusd-cistron, radiusd-livingston, xradius, yardradius).
>
>Did you recommend ckpasswd over radius for any particular reason
>(simplicity, speed, familiarity, etc.)?
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.
>My current RumorMill NNTP server has [...]
Ah ha!
Your conceptualization sounds great, and you can easily do this
with INN.
>I take this to mean user accounts? No, I don't want to create hundreds
>of users. <g>
I didn't think so!
>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.)
>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.
>I have the file set up as "username:password:Real Name" now, but I don't
>understand how to encrypt it with htpasswd -- as a single batch. I sure
>wouldn't want to retype all of the entries. The man htpasswd does not
>explain how to do the encryption on a textfile, nor can I figure out how
>it would know to only encrypt the data after the first colon, and stop
>at the second colon.
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: \"$_\"";
}
}
>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.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Mon, 26 Sep 2005 21:19
Date: Mon, 26 Sep 2005 21:19
43 lines
3219 bytes
3219 bytes
In article <CqTZe.81538$qY1.40661@bgtnsc04-news.ops.worldnet.att.net>, John F. Morse <xanadu.bbs@invalid.net> wrote: > >My current RumorMill NNTP server has five groups (plus test, local.test >and the control groups). The users were formerly using the Ft. Worth >Star-Telegram NNTP server, which closed down in early 2001. Prior to >this, the newsmaster who created the FW S-T news server moved to the >Dallas Morning News. He was asked and then added one FW S-T group, >Brisbee, a virtual city. > >The DMN ran an HTTP-based forum, and everyone hated it. So I fired up >the RumorMill NNTP server, and created four of the old FW S-T groups, >plus one from a defunct Kansas City Star NNTP server. The FW S-T and the >KC Star are both Knight-Ridder rags, and I think they realized there is >no income in NNTP, only expenses in maintaining it. > >As I previously mentioned, I had to lock down the server a couple of >months ago due to abuse (username and password is now required). > >I have desired for several years to also have a server for the general >public to use. It will be based on a ministry that a friend operates. >Naturally we don't want to force people to jump through hoops to access >whatever religious groups are created. > >This "open access" area could also be used to announce (in a read-only >group) the instructions for accessing the "closed access" portion. Such >as who to e-mail with a username and password choice. I forgot to address this part! If you want to announce the names of the groups you'll be using out here, it might be easier to understand the answers, but if not I can sketch something out using generic names. It sounds like you might want to provide people with access either to the newspaper-related groups or the religious groups but perhaps not both at once. That's actually a little tricky, and I'll wait to find out do want to limit access like this before giving you specific recommendations. -- Jeffrey M. Vinocur jeff@litech.org
Re: Authentication advice
Author: Aioe
Date: Mon, 26 Sep 2005 21:36
Date: Mon, 26 Sep 2005 21:36
11 lines
1357 bytes
1357 bytes
Jeffrey M. Vinocur wrote: > Okay...you can take this route if you like, but I think you'll be > surprised at how few clients have adequate SSL support. about 10% of total *clients* of Aioe.org is using NNTP over SSL Dialog supports it well. cheers
Re: Authentication advice
Author: John F. Morse
Date: Mon, 26 Sep 2005 23:12
Date: Mon, 26 Sep 2005 23:12
79 lines
4906 bytes
4906 bytes
Aioe wrote: >Jeffrey M. Vinocur wrote: > > > >>Okay...you can take this route if you like, but I think you'll be >>surprised at how few clients have adequate SSL support. >> >> > >about 10% of total *clients* of Aioe.org is using NNTP over SSL >Dialog supports it well. > >cheers > One of my early ISPs, AT&T Worldnet, which I started using around 1995, validated the users using CHAP through their private modem banks. If you got in, then you were in fact their customer. Around 2000 they initiated GIA (General Internet Access), where broadband (and other) users could access their network. They use SSL to verify the users by their e-mail address and e-mail password (entirely different than the dial-in account ID and CHAP password). Those who still use dial-in modems need no SSL. I still keep my account there, mainly for six e-mail addresses, 150 MB of e-mail space over six addresses, and 150 MB of personal Web space in six accounts, plus a great bunch of users in their newsgroups, all for $5.95 per month. If I traveled, I could access my mail from anywhere via one of their dial-in PoPs, or their 800-number, for something like $6.00 per hour. Reasonable for quick e-mail downloads. The early "fix" for those users like me, who grabbed broadband when it was available, used Stunnel. I had it running on an old Pentium 75 under Windows 95B for several years. It ran great as long as unstable Win95 wouldn't crash. When newer NNTP/SMTP/POP3 clients were available, the SSL tunnel was no longer needed. However, I do still need it for some clients, like Agent, Xnews, and older applications on the Windows and Mac platforms, as well as KNode on Linux. I have Stunnel running in a BASH background on one of my Linux boxes, and I use that box's IP in all of those clients. I don't use POP3/SMTP via Stunnel, but only use NNTP (port 119 to/from 563). Mozilla and Thunderbird are very easy to configure. Well, at least for me, since I live in networking nearly 18/7, but maybe not all that easy for the plug-n-play Windoze user. I think the newest Outlook Express has SSL, even though it is several years long in the tooth. Most of my users are using Windows, and probably OE 6 or Thunderbird, so I don't think I'll have any problems getting them to click one check box. They all were able to configure authentication, but I did post a howto prior to the switch over. I find this one-time early howto is far better than answering tons of e-mail later. <g> If they have older software, and can't/won't upgrade, or they won't download and configure Stunnel, than maybe I'll need to give them a back door. Perhaps IP validation on another FQDN pointing to a different WAN IP, or secret port forwarding. If they want access badly enough, they'll find a way. SSL probably won't be used for any "open" (non-authenticated) groups, so I can relax. I may choose to use SSL, like Netscape does on their open public secnews server, for certain open groups, but I do not presently know why I would need to do this. I could see where it might be useful to hide from law enforcement sniffers if a server were hosting certain copyrighted or illegal binaries, but I have none of these. Looking over all the INN docs and man pages, it appears I can do just about anything I can dream up -- as long as Jeff and Bill can still be found. <g> -- John
Re: Authentication advice
Author: John F. Morse
Date: Wed, 28 Sep 2005 22:48
Date: Wed, 28 Sep 2005 22:48
206 lines
9707 bytes
9707 bytes
Bill Davidsen wrote: > John F. Morse wrote: > >> Did you recommend ckpasswd over radius for any particular reason >> (simplicity, speed, familiarity, etc.)? > > > radius uses another server application, which means at the very least > you need to install, configure, and maintain a radius server. Since > the benefit of radius is the ability to have the auth data in one > place and the service in another, if you have everything in one place > it adds complexity without adding flexibility. > > If you have multiple servers in many places (I do) and don't want to > have the master user database on each (I don't), then radius allows > the auth data to be in a different set of locations than the user > services. It also adds additional points of failure, the radius > servers and the network connection, and where everything is in one > place is just more stuff to maintain. I do, but they are slaves, and users have no access, therefore authentication is not required. I'll keep this useful information in mind though, just in case there is growth someday. Thanks for the info. >> My current RumorMill NNTP server has five groups (plus test, >> local.test and the control groups). The users were formerly using the >> Ft. Worth Star-Telegram NNTP server, which closed down in early 2001. >> Prior to this, the newsmaster who created the FW S-T news server >> moved to the Dallas Morning News. He was asked and then added one FW >> S-T group, Brisbee, a virtual city. >> >> The DMN ran an HTTP-based forum, and everyone hated it. So I fired up >> the RumorMill NNTP server, and created four of the old FW S-T groups, >> plus one from a defunct Kansas City Star NNTP server. The FW S-T and >> the KC Star are both Knight-Ridder rags, and I think they realized >> there is no income in NNTP, only expenses in maintaining it. >> >> As I previously mentioned, I had to lock down the server a couple of >> months ago due to abuse (username and password is now required). >> >> I have desired for several years to also have a server for the >> general public to use. It will be based on a ministry that a friend >> operates. Naturally we don't want to force people to jump through >> hoops to access whatever religious groups are created. >> >> This "open access" area could also be used to announce (in a >> read-only group) the instructions for accessing the "closed access" >> portion. Such as who to e-mail with a username and password choice. >> >> I ran a multi-node dial-up BBS for about ten years before the >> Internet took away all the users. <g> In 2001 I closed it down after >> I had the NNTP server running for a few months. It provided an ANSI >> graphics "welcome screen" that anyone could read. This gave >> information on how to obtain an account for access, etc. >> >> Since NNTP provides no such welcome (well, you can use telnet and >> sometimes get some info), I thought a non-authentication, read-only >> group could be used to supply access instructions. I would prefer one >> computer, running INN, take care of all NNTP, instead of running >> multiple computers. >> >> If you have a better idea, I'm all ears. <g> > > > Have a web site, put the intro there, have a link to the newsgroups so > people don't even have to know htey're using nntp. > ex: <a href="news:news.mydomain.net"><b>enter discussions</b></a><p> > (I typed that by hand, but you get the idea). Good idea. I hadn't thought of it yet, even though this idea was used for years by one of the users on their own Website. I have part of that old site already running on one of my Fedora Core 3 boxes, so it would be a very simple edit to modify the index.html page. This link would be for the NNTP server portion that was not requiring authentication of course. For any new users wishing to join the current users, behind password authentication, I could add some information and an e-mail link for authorization. http://brisbee.us > I can just see your M$ users using Stunnel. How large is your support > group? It is a group of one. ;-) I have some documents from the AT&T Worldnet WURD site, which show how to set up Stunnel for Windows, Mac and Linux. Looks simple to me, although I have some different, modified methods for the Mac and Linux. http://www.wurd.com/index.php >> 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'll just need to keep an eye (a "feel") on messages, and if I >> suspect something, I can change the user's password. That would be >> far easier than trying to configure a FQDN or IP range in >> readers.conf for a specific user who has a dynamic ISP IP assignment. > > > Thus the need for a good posting filter. As usual, I'm open to suggestions. >>> readable by other people. You can store it anywhere you like -- >>> the only thing INN cares about is that you specify the path in >>> the ckpasswd command in readers.conf. So if you want to put it >>> in ~news/etc/, that's reasonable, but you can put it anywhere >>> your local system configuration dictates. >> >> So the file needs to be readable by the news user, and not > > > It needs to be readable by the authentication program. So, my idea of putting it into /var/spool/news where news is the owner, is OK? >> I'll stick in /var/spool/news where Debian created news' home directory. >> >> I have the file set up as "username:password:Real Name" now, but I >> don't understand how to encrypt it with htpasswd -- as a single >> batch. I sure wouldn't want to retype all of the entries. The man >> htpasswd does not explain how to do the encryption on a textfile, nor >> can I figure out how it would know to only encrypt the data after the >> first colon, and stop at the second colon. >> >> Maybe I'm not understanding it? Does it encrypt everything, or just >> the password? > > > Just the password, the file isn't world readable, the directory is > (should be) protected, and the important stuff is encrypted. Understood. Looking over my question again, I see I was tuned to encryption in the middle of discussing htpassword. I haven't jumped into Perl yet, but Jeff's script seems simple enough. > Be glad Jeff is a nice guy, I would have suggested you start by > building from source and putting things where it's most convenient for > you. I would personally have it all in one filesystem I could easily > backup. Every distribution has their own idea where things should go, > ignoring the application defaults (which aren't always what I want, > either ;-) I am very thankful for Jeff, and you can take credit too. Without you guys I would be down to the trial-and-error stage for everything I read -- and understood. This might even go so far as to having to try several distros with INN, which would take enormous amounts of time. Most distro reviews seem to be more eye-candy oriented for desktop clients. You know, Internet browsers, multi-media, games, .... It's hard to find reviews on server apps, so I've had to use the trial-and-error process for myself. Most anywhere is "easy" for me, but I try and follow whatever "standards" are being thought up, knowing there are disagreements. Also remembering to watch file permissions so "news" can access what he needs, and others cannot hack and su to root. Back in 2000 I had plans on running Breeze, which is related to the other Highwinds stuff (Typhoon, Cyclone, etc.). I downloaded a copy, then went to Branson for a week. When I returned, I discovered they no longer supplied the free key to run it. So I went to the RumorMill app for the Mac. I read a little about INN over a couple of years, but couldn't find my "round-tuit" and since RumorMill was performing flawlessly, what's the hurry? Again, thanks for taking the time to help. If there's ever anything I can assist with, please holler. -- John
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Thu, 29 Sep 2005 01:19
Date: Thu, 29 Sep 2005 01:19
110 lines
5471 bytes
5471 bytes
In article <L4F_e.333879$5N3.42955@bgtnsc05-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>Bill Davidsen wrote:
>
>> Thus the need for a good posting filter.
>
>As usual, I'm open to suggestions.
Well, the most commonly used posting filter is Cleanfeed (which
comes installed as filter_innd.pl in some linux distributions,
even though it's not part of INN). It's not very easy to
configure, though.
If you're really keeping this a standalone server, with no open
posting access and no peers, I'm not sure that you need a filter.
It will catch people trying to post binaries, and it will stop
most attempts at spam. But there will probably be some false
positives, where it keeps someone from posting something
legitimate.
So you have to balance that against the chances of binaries or
spam being a problem with the users you have in mind, and the
amount of difficulty it would cause if your server were briefly
out of commission because someone managed to fill up the entire
spool.
You could go either way here. But I wouldn't hold off deploying
your new server for very long while you puzzle out the Cleanfeed
documentation -- you can always add it later.
>> It needs to be readable by the authentication program.
>
>So, my idea of putting it into /var/spool/news where news is the owner,
>is OK?
I don't know where exactly to tell you because of Debian's
fiddlings.
Personally, I wouldn't put it in the news spool itself (that is,
in the same place there are subdirectories called "articles" and
"overview"). So if that's what's in /var/spool/news, I might try
somewhere different -- although it would work, even there.
I would put it in one of three places:
1. in $pathetc, where "incoming.conf" and "readers.conf" are
2. in $pathdb, where "history" and "active" are
3. in the parent directory of one or the other of those
Probably I would go with #3, unless the parent directory/ies of
$pathetc and $pathdb are not owned by news. After that #1, and
finally #2.
My reasoning is mainly that you don't want to get this mixed up
with INN files. For example, if some future person comes along
and is trying to migrate your INN to a new server, he might try
to bring the configuration but not the whole spool, and so might
accidentally leave the user database behind. So I'd like to have
it in a separate obvious place, or at least mixed in with files
that are most similar to it in nature.
This kind of discussion goes on in my head a lot. It's part of
why it always takes me a little while to install new software :-)
>Most anywhere is "easy" for me, but I try and follow whatever
>"standards" are being thought up, knowing there are disagreements.
It's tough with INN, because there are a lot of files in a lot of
different places, and the distributions put them in unexpected
locations (for us, and the documentation).
I guess we -could- investigate this enough to have a quick
reference for converting default locations to and from
platform-specific locations, though. Wouldn't be that much work,
we'd just have to find some people who actually use the packages
to ask for help...for example, yourself...
Will you run `grep ^path inn.conf` and post the output? (You can
delete the "pathhost:" line, that's not a filesystem path!)
>remembering to watch file permissions so "news" can access what he
>needs, and others cannot hack and su to root.
Right. This is something that will rarely get you in trouble
with INN, luckily, because it's almost always editing files that
are already there. Or you accidentally have config files owned
by root, but INN doesn't mind as long as it can still read them.
The only real trouble I've ever had is when I run makehistory and
end up with the whole overview database being owned by root. INN
doesn't like that.
>So I went to the RumorMill app for the Mac. I read a little about INN
>over a couple of years, but couldn't find my "round-tuit" and since
>RumorMill was performing flawlessly, what's the hurry?
No problem -- INN has actually gotten quite a bit nicer in the
interim, so you kinda lucked out.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
Author: John F. Morse
Date: Thu, 29 Sep 2005 03:31
Date: Thu, 29 Sep 2005 03:31
110 lines
5424 bytes
5424 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: > > >>My current RumorMill NNTP server has five groups (plus test, local.test >>and the control groups). The users were formerly using the Ft. Worth >>Star-Telegram NNTP server, which closed down in early 2001. Prior to >>this, the newsmaster who created the FW S-T news server moved to the >>Dallas Morning News. He was asked and then added one FW S-T group, >>Brisbee, a virtual city. >> >>The DMN ran an HTTP-based forum, and everyone hated it. So I fired up >>the RumorMill NNTP server, and created four of the old FW S-T groups, >>plus one from a defunct Kansas City Star NNTP server. The FW S-T and the >>KC Star are both Knight-Ridder rags, and I think they realized there is >>no income in NNTP, only expenses in maintaining it. >> >>As I previously mentioned, I had to lock down the server a couple of >>months ago due to abuse (username and password is now required). >> >>I have desired for several years to also have a server for the general >>public to use. It will be based on a ministry that a friend operates. >>Naturally we don't want to force people to jump through hoops to access >>whatever religious groups are created. >> >>This "open access" area could also be used to announce (in a read-only >>group) the instructions for accessing the "closed access" portion. Such >>as who to e-mail with a username and password choice. >> >> > >I forgot to address this part! If you want to announce the names >of the groups you'll be using out here, it might be easier to >understand the answers, but if not I can sketch something out >using generic names. > >It sounds like you might want to provide people with access >either to the newspaper-related groups or the religious groups >but perhaps not both at once. That's actually a little tricky, >and I'll wait to find out do want to limit access like this >before giving you specific recommendations. > The five groups I've hosted for five years that originally came from the newspapers: brisbee computers petchat raucouscaucus soapbox These five "newspaper" groups should all be behind password authentication. INN installed the following groups: control control.cancel control.checkgroups control.newgroup control.rmgroup junk local.general local.test I'll probably not have the two "local" groups in the finished product, but I did create a new "test" group, which is now carried by the online server. This type of group can have a very short expiration period. I've hidden the c.ch* c.n* and c.r* and junk groups, and most likely will hide the control and control.cancel groups after I finish testing. None of these groups will be peering to/from USENET so there's no danger of like-named groups interfering (i.e "local.*" not needed). I plan on hosting several "open" groups as well, but do not have names for them yet. I'll just make up a few: announcements ministry-news prayer-requests testimonies-praise personal-family-help cults-occult bible.study-discussion bible.prophesy Notice I created a bible "sub-directory" for the last two groups. Might be overkill, but this list is only for a general idea. I will have one or more "partners" to dream up what they want and need in the area of newsgroups. Access to the open groups would be available to anybody, including the users of the newspaper groups. No password should be needed (I believe "authuser" will not be sent). That's about it for the proposed access ideas. If you need more info, just holler. Somehow I feel vsftpd (or another ftpd) will also be trouble configuring, but the reverse of the NNTP server. So far it appears FTP servers are usually always "open" unless you provide each user a Linux account, and then maybe symlink to a big "open" area. But that's another topic. -- John
Re: Authentication advice
Author: John F. Morse
Date: Thu, 29 Sep 2005 04:35
Date: Thu, 29 Sep 2005 04:35
197 lines
8671 bytes
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
Re: Authentication advice
Author: John F. Morse
Date: Thu, 29 Sep 2005 06:43
Date: Thu, 29 Sep 2005 06:43
275 lines
10466 bytes
10466 bytes
Jeffrey M. Vinocur wrote: >In article <L4F_e.333879$5N3.42955@bgtnsc05-news.ops.worldnet.att.net>, >John F. Morse <xanadu.bbs@invalid.net> wrote: > > >>Bill Davidsen wrote: >> >> >> >>>Thus the need for a good posting filter. >>> >>> >>As usual, I'm open to suggestions. >> >> > >Well, the most commonly used posting filter is Cleanfeed (which >comes installed as filter_innd.pl in some linux distributions, >even though it's not part of INN). It's not very easy to >configure, though. > >If you're really keeping this a standalone server, with no open >posting access and no peers, I'm not sure that you need a filter. >It will catch people trying to post binaries, and it will stop >most attempts at spam. But there will probably be some false >positives, where it keeps someone from posting something >legitimate. > >So you have to balance that against the chances of binaries or >spam being a problem with the users you have in mind, and the >amount of difficulty it would cause if your server were briefly >out of commission because someone managed to fill up the entire >spool. > >You could go either way here. But I wouldn't hold off deploying >your new server for very long while you puzzle out the Cleanfeed >documentation -- you can always add it later. > > Since it has been running for five years, there's no hurry. I'll file this message for future reference though. I have the maximumarticlesize set to 350kB on the RumorMill server, so someone would really need to work a long time to fill the hard drive. INN is set at the default 1MB, and I probably will decrease it. Posters need to be trained to convert BMP files to JPGs. The only peers are downstream, to my other servers. The first one is for backup, the second one is a beta test on a newer RumorMill, and the new INN streams with it. No other peers are available. Except I do pull/suck a group or two from Worldnet, and one from USENET on my ISP's news provider. There is no full spool possible when pulling (unless I don't have an eye on the free space!). I could POST back, but never do. I use their normal server for posting. BTW, the Worldnet suck does use Stunnel on a Linux box for access. >>>It needs to be readable by the authentication program. >>> >>> >>So, my idea of putting it into /var/spool/news where news is the owner, >>is OK? >> >> > >I don't know where exactly to tell you because of Debian's >fiddlings. > > Which OS do you use? >Personally, I wouldn't put it in the news spool itself (that is, >in the same place there are subdirectories called "articles" and >"overview"). So if that's what's in /var/spool/news, I might try >somewhere different -- although it would work, even there. > >I would put it in one of three places: > > 1. in $pathetc, where "incoming.conf" and "readers.conf" are > > 2. in $pathdb, where "history" and "active" are > > 3. in the parent directory of one or the other of those > >Probably I would go with #3, unless the parent directory/ies of >$pathetc and $pathdb are not owned by news. After that #1, and >finally #2. > > #1 belongs to root. #2 belongs to news. >My reasoning is mainly that you don't want to get this mixed up >with INN files. For example, if some future person comes along >and is trying to migrate your INN to a new server, he might try >to bring the configuration but not the whole spool, and so might >accidentally leave the user database behind. So I'd like to have >it in a separate obvious place, or at least mixed in with files >that are most similar to it in nature. > > With that in mind, /var/lib/news might be the best place for a grab to take everything. There are no single files in /var/lib (everything is a directory). >This kind of discussion goes on in my head a lot. It's part of >why it always takes me a little while to install new software :-) > > I know the feeling. That's one reason I read a lot, then ask opinions. Then ask "why?" Often I find myself thinking "out loud" even in a newsgroup message. Throwing out ideas; finding out why some are bad and if some may work. Some people take exception to this though. They probably think I'm questioning their intelligence. But I'm really only running my ideas across, to see what their experience thinks. >>Most anywhere is "easy" for me, but I try and follow whatever >>"standards" are being thought up, knowing there are disagreements. >> >> > >It's tough with INN, because there are a lot of files in a lot of >different places, and the distributions put them in unexpected >locations (for us, and the documentation). > >I guess we -could- investigate this enough to have a quick >reference for converting default locations to and from >platform-specific locations, though. Wouldn't be that much work, >we'd just have to find some people who actually use the packages >to ask for help...for example, yourself... > >Will you run `grep ^path inn.conf` and post the output? (You can >delete the "pathhost:" line, that's not a filesystem path!) > > I'll help wherever I can. Besides Debian, other distros I have online (on the LAN) are: Fedora Core 1 Fedora Core 3 Lindows (now Linspire) 4.5.316 (a Debian) Linspire 5.0 Mandrake 8.0 Mandrake 10.1 Slackware 10.1 Mac OS-X 10.3.8 (FreeBSD "Darwin") and live CDs of: FreeSBIE 1.1 Knoppix 3.7 Ubuntu 5.04 RedHat 5.2 is also installed in something around here, but not presently online. I probably have INN installed but, not configured, on some of the LAN clients. If you need me to check something, just holler. Here ya go (grep ^path inn.conf): pathnews: /usr/lib/news patharchive: /var/spool/news/archive patharticles: /var/spool/news/articles pathbin: /usr/lib/news/bin pathcontrol: /usr/lib/news/bin/control pathdb: /var/lib/news pathetc: /etc/news pathfilter: /etc/news/filter pathhttp: /var/log/news pathincoming: /var/spool/news/incoming pathlog: /var/log/news pathoutgoing: /var/spool/news/outgoing pathoverview: /var/spool/news/overview pathrun: /var/run/news pathspool: /var/spool/news pathtmp: /var/spool/news/incoming/tmp >>remembering to watch file permissions so "news" can access what he >>needs, and others cannot hack and su to root. >> >> > >Right. This is something that will rarely get you in trouble >with INN, luckily, because it's almost always editing files that >are already there. Or you accidentally have config files owned >by root, but INN doesn't mind as long as it can still read them. > >The only real trouble I've ever had is when I run makehistory and >end up with the whole overview database being owned by root. INN >doesn't like that. > > Speaking of the overview database.... I just looked it over, and I find an additional entry for the local.general group (one created at INN's install time). I have the following: /var/spool/news/overview/l/g/local.general.DAT (and local.general.IDX) and a new one: /var/spool/news/overview/g/general.DAT (and general.IDX) I don't think this one belongs (may have been a typo during the tdx-util or makehistory). This group does not exist in /var/lib/news/active or in /var/lib/news/newsgroups as the plain "general" group. The "local.general" group does exist in these two files. There is no "general" directory in /var/spool/news/articles/local but probably because nothing has ever been posted to it. Only local.general appears in a news reader when refreshing the list of groups. This $pathoverview/g directory has not been accessed in the last three days, since Monday afternoon, 20050926 when I was rebuilding the database. All other overview directories show modifications yesterday, 20050928. How can I safely delete it? There is one file $pathoverview/group.index that hasn't been updated since 20050925. It is 128kB. I looked it over with KHexEdit and could see nothing other than hex (no understandable ASCII). I'm curious why this file hasn't been updated in nearly four days (no activity with ctlinnd newgroup perhaps?). >>So I went to the RumorMill app for the Mac. I read a little about INN >>over a couple of years, but couldn't find my "round-tuit" and since >>RumorMill was performing flawlessly, what's the hurry? >> >> > >No problem -- INN has actually gotten quite a bit nicer in the >interim, so you kinda lucked out. > I'm glad I waited. The time spent with RumorMill is not wasted. I learned a lot about NNTP, USENET, etc., which helps me immensely in configuring INN -- once I stumble around and find the parts. ;-) -- John
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Fri, 30 Sep 2005 01:57
Date: Fri, 30 Sep 2005 01:57
73 lines
3588 bytes
3588 bytes
In article <d2M_e.90352$qY1.58251@bgtnsc04-news.ops.worldnet.att.net>, John F. Morse <xanadu.bbs@invalid.net> wrote: > >Jeffrey M. Vinocur wrote: > >>John F. Morse <xanadu.bbs@invalid.net> wrote: >> >>>Bill Davidsen wrote: >>> >> >>I don't know where exactly to tell you because of Debian's >>fiddlings. > >Which OS do you use? It doesn't matter -- see, I don't use the distributions pre-packaged INN install. I download the source from isc.org and compile it. So unless I change something in the config, it goes with the default locations (which are the ones in the documentation). >With that in mind, /var/lib/news might be the best place for a grab to >take everything. Now that you've posted the inn.conf entries, I have a better idea of what we're talking about here. I think /var/lib/news is an okay place for it. You could also make a case for /usr/lib/news (provided your /usr isn't readonly), or /etc/news (or even /etc -- after all, this file can be owned by root, group news, mode 640 if you want, since the news user has no reason to need write access to its own password file). I wouldn't do /var/spool/news though. >I'll help wherever I can. Besides Debian, other distros I have online >(on the LAN) are: Okay, that's a lot. We only care about distributions that have an INN package. Redhat products are far and away the ones that get the most people posting here confused...perhaps there's someone here who already has the INN RPM installed and could `grep ^path inn.conf` for us. But if not, and you want to dig around for it, I'd certainly appreciate the info. >/var/spool/news/overview/g/general.DAT (and general.IDX) > >This group does not exist in /var/lib/news/active or in >/var/lib/news/newsgroups as the plain "general" group. That's pretty weird. But yeah, it's safe to delete the part of the overview tree corresponding to those (although, if there's anything in the .DAT, it might help us figure out what went wrong). Just rm it away :-) >There is one file $pathoverview/group.index that hasn't been updated >since 20050925. Yeah, you need that file, and no, I don't know what makes it update. On my system, it hasn't been modified in over a year, but INN does read from that file, and everything still seems to work. Russ, you know the relevant code very well, want to enlighten us? -- Jeffrey M. Vinocur jeff@litech.org
Re: Authentication advice
Author: Russ Allbery
Date: Fri, 30 Sep 2005 02:04
Date: Fri, 30 Sep 2005 02:04
20 lines
2031 bytes
2031 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> John F. Morse <xanadu.bbs@invalid.net> wrote:
>> There is one file $pathoverview/group.index that hasn't been updated
>> since 20050925.
> Yeah, you need that file, and no, I don't know what makes it
> update. On my system, it hasn't been modified in over a year,
> but INN does read from that file, and everything still seems to
> work. Russ, you know the relevant code very well, want to
> enlighten us?
It's a mapping from newsgroup names to numbers and is only updated when
you add a new newsgroup with tradspool storage.
--
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.
Re: Authentication advice
Author: John F. Morse
Date: Fri, 30 Sep 2005 05:26
Date: Fri, 30 Sep 2005 05:26
185 lines
7667 bytes
7667 bytes
Jeffrey M. Vinocur wrote: >>With that in mind, /var/lib/news might be the best place for a grab to >>take everything. >> >> > >Now that you've posted the inn.conf entries, I have a better idea >of what we're talking about here. I think /var/lib/news is an >okay place for it. You could also make a case for /usr/lib/news >(provided your /usr isn't readonly), or /etc/news (or even /etc >-- after all, this file can be owned by root, group news, mode >640 if you want, since the news user has no reason to need write >access to its own password file). > >I wouldn't do /var/spool/news though. > > Sounds good. Thanks. >>I'll help wherever I can. Besides Debian, other distros I have online >>(on the LAN) are: >> >> > >Okay, that's a lot. > >We only care about distributions that have an INN package. >Redhat products are far and away the ones that get the most >people posting here confused...perhaps there's someone here who >already has the INN RPM installed and could `grep ^path inn.conf` >for us. But if not, and you want to dig around for it, I'd >certainly appreciate the info. > > OK. Here's some path info for the distros I can easily get to without a lot of work. I did need to download and install INN on the Fedora Core 1 and 3, and the Mandrake 10.1 boxes. The Red Had version I have is 5.2, which is pretty old. Do you need the path info for it, or the Slackware distro? Hopefully the Fedora Core info below will be identical to the RH and RHEL. INN 2.3.5-6 on Fedora Core 1 Linux 2.4.22-1.2199 pathnews: /usr/lib/news pathalias: patharchive: /var/spool/news/archive patharticles: /var/spool/news/articles pathbin: /usr/lib/news/bin pathcontrol: /usr/lib/news/bin/control pathdb: /var/lib/news pathetc: /etc/news pathfilter: /usr/lib/news/bin/filter pathhttp: /var/log/news pathincoming: /var/spool/news/incoming pathlog: /var/log/news pathoutgoing: /var/spool/news/outgoing pathoverview: /var/spool/news/overview pathrun: /var/run/news pathspool: /var/spool/news pathtmp: /var/lib/news/tmp INN 2.3.5-11 on Fedora Core 3 Linux 2.6.11-1.35 pathnews: /usr/lib/news pathalias: patharchive: /var/spool/news/archive patharticles: /var/spool/news/articles pathbin: /usr/lib/news/bin pathcontrol: /usr/lib/news/bin/control pathdb: /var/lib/news pathetc: /etc/news pathfilter: /usr/lib/news/bin/filter pathhttp: /var/log/news pathincoming: /var/spool/news/incoming pathlog: /var/log/news pathoutgoing: /var/spool/news/outgoing pathoverview: /var/spool/news/overview pathrun: /var/run/news pathspool: /var/spool/news pathtmp: /var/lib/news/tmp INN 2.3.3-1 on Lindows 4.5.316 (Debian) Linux 2.4.24 pathnews: /usr/lib/news pathalias: patharchive: /var/spool/news/archive patharticles: /var/spool/news/articles pathbin: /usr/lib/news/bin pathcontrol: /usr/lib/news/bin/control pathdb: /var/lib/news pathetc: /etc/news pathfilter: /etc/news/filter pathhttp: /var/log/news pathincoming: /var/spool/news/incoming pathlog: /var/log/news pathoutgoing: /var/spool/news/outgoing pathoverview: /var/spool/news/overview pathrun: /var/run/news pathspool: /var/spool/news pathtmp: /var/spool/news/incoming/tmp INN 2.4.1-5 on Mandrake 10.1 Linux 2.6.8.1-12 pathnews: /usr patharchive: /var/spool/news/archive patharticles: /var/spool/news/articles pathbin: /usr/bin pathcontrol: /usr/lib/news/bin/control pathdb: /var/lib/news pathetc: /etc/news pathfilter: /usr/lib/news/bin/filter pathhttp: /var/log/news pathincoming: /var/spool/news/incoming pathlog: /var/log/news pathoutgoing: /var/spool/news/outgoing pathoverview: /var/spool/news/overview pathrun: /var/run/news pathspool: /var/spool/news pathtmp: /usr/tmp Package managers: Fedora Core uses RPM. Lindows/Linspire use CNR (possibly their take on Synaptec or APT-GET). Mandrake/Mandriva uses RPM or URPMI. I looked over the iMac (OS 10.3.9, "Darwin" FreeBSD) and it does not have INN installed. I don't have the Apple "server" set of CDs, and doubt if they provide INN (it wasn't found during a search of their "Downloads" Website). Finding INN and installing it would take more time than I have right now, and besides I doubt if many Mac users run INN. If the need arises, I'll try to find it and somehow install it. >>/var/spool/news/overview/g/general.DAT (and general.IDX) >> >>This group does not exist in /var/lib/news/active or in >>/var/lib/news/newsgroups as the plain "general" group. >> >> > >That's pretty weird. But yeah, it's safe to delete the part of >the overview tree corresponding to those (although, if there's >anything in the .DAT, it might help us figure out what went >wrong). Just rm it away :-) > > Both the .DAT and the .IDX are empty files (zero bytes). I deleted the $pathoverview/g directory. >>There is one file $pathoverview/group.index that hasn't been updated >>since 20050925. >> >> > >Yeah, you need that file, and no, I don't know what makes it >update. On my system, it hasn't been modified in over a year, >but INN does read from that file, and everything still seems to >work. Russ, you know the relevant code very well, want to >enlighten us? > > I peeked at the code with kHexEdit and it appears to be a database. Russ made the same deduction. Thanks again for your help. -- John
Re: Authentication advice
Author: Bill Cole
Date: Fri, 30 Sep 2005 14:48
Date: Fri, 30 Sep 2005 14:48
26 lines
2495 bytes
2495 bytes
In article <w04%e.342059$5N3.187813@bgtnsc05-news.ops.worldnet.att.net>, "John F. Morse" <xanadu.bbs@invalid.net> wrote: > I looked over the iMac (OS 10.3.9, "Darwin" FreeBSD) and it does not > have INN installed. I don't have the Apple "server" set of CDs, and > doubt if they provide INN (it wasn't found during a search of their > "Downloads" Website). Finding INN and installing it would take more time > than I have right now, and besides I doubt if many Mac users run INN. If > the need arises, I'll try to find it and somehow install it. Apple does not include INN in any form in any version of MacOS X. On 10.3.x and probably earlier versions of MacOS X, you have to do some special build config and/or source code modifications in INN to get around a bug in the system's mmap implementation that results in rather quiet but deadly INN breakage. INN 2.4.x builds from the distribution source cleanly on MacOS 10.4.y for multiple combinations of x and y values. Bottom line: if INN on MacOS X ends up being something you decide to do, your best bet is to upgrade to Tiger and build INN from source rather than to hunt down a pre-built binary package for Panther and risk it not having a fix for the mmap bug. -- Now where did I hide that website...
Re: Authentication advice
Author: John F. Morse
Date: Fri, 30 Sep 2005 19:30
Date: Fri, 30 Sep 2005 19:30
41 lines
3024 bytes
3024 bytes
Bill Cole wrote: >In article ><w04%e.342059$5N3.187813@bgtnsc05-news.ops.worldnet.att.net>, > "John F. Morse" <xanadu.bbs@invalid.net> wrote: > > > >>I looked over the iMac (OS 10.3.9, "Darwin" FreeBSD) and it does not >>have INN installed. I don't have the Apple "server" set of CDs, and >>doubt if they provide INN (it wasn't found during a search of their >>"Downloads" Website). Finding INN and installing it would take more time >>than I have right now, and besides I doubt if many Mac users run INN. If >>the need arises, I'll try to find it and somehow install it. >> >> > >Apple does not include INN in any form in any version of MacOS X. On >10.3.x and probably earlier versions of MacOS X, you have to do some >special build config and/or source code modifications in INN to get >around a bug in the system's mmap implementation that results in rather >quiet but deadly INN breakage. INN 2.4.x builds from the distribution >source cleanly on MacOS 10.4.y for multiple combinations of x and y >values. > >Bottom line: if INN on MacOS X ends up being something you decide to do, >your best bet is to upgrade to Tiger and build INN from source rather >than to hunt down a pre-built binary package for Panther and risk it not >having a fix for the mmap bug. > Thanks for the info, Bill. I have no need, but was going to see if I could provide the path info for Jeff. -- John
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Fri, 30 Sep 2005 19:53
Date: Fri, 30 Sep 2005 19:53
31 lines
2176 bytes
2176 bytes
In article <w04%e.342059$5N3.187813@bgtnsc05-news.ops.worldnet.att.net>, John F. Morse <xanadu.bbs@invalid.net> wrote: > >OK. Here's some path info for the distros I can easily get to without a >lot of work. Cool! Thanks for doing all of that -- it'll be really useful for helping us help other people who post here with questions in the future. Don't bother with Redhat 5.2 :-) I imagine it's the same as Fedora anyway. And slackware, well, we've -never- had anybody here confused about paths with that distribution, so either people who use slackware build their own INN, or they're savvy enough to figure it out. >If the need arises, I'll try to find it and somehow install it. I have OS X if we get that desperate :-) >I peeked at the code with kHexEdit and it appears to be a database. If you're really curious, you can look in storage/tradindexed/ in the INN source tree (tdx-structure.h in particular). -- Jeffrey M. Vinocur jeff@litech.org
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Fri, 30 Sep 2005 20:06
Date: Fri, 30 Sep 2005 20:06
52 lines
3335 bytes
3335 bytes
In article <caK_e.335352$5N3.316417@bgtnsc05-news.ops.worldnet.att.net>, John F. Morse <xanadu.bbs@invalid.net> wrote: > >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 mean, it's possible. But seriously, I've been reading this group for a fair number of years now, and I don't recall anybody -ever- reporting a news server hacked, or targeted, or anything. And I think very few attacks these days send any files back to the attacker -- it seems like sometimes they use users' address books to spread outwards, but attempts to report that information back somewhere just results in the receiving account being terminated. >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? Oof you just shut the server down hard, voluntarily? Yeah, INN doesn't like that. It's been better in more recent versions, but given the choice you should always throttle and then rc.news stop. You found the right procedure for fixing it, though. >This Eagle faq Heh. Eagle is Russ, who I guess you could say is mainly in charge of INN development these days. >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. Yeah, I've noticed that as well. The trick is, you have to renumber before any of your peers notice you're back and send articles, because then the server will throttle with that same error again! (Luckily, usually after you've been gone for a couple hours, it takes several minutes for anybody to notice you've returned, so a quick ctlinnd go/ctlinnd renumber works.) -- Jeffrey M. Vinocur jeff@litech.org
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Fri, 30 Sep 2005 20:22
Date: Fri, 30 Sep 2005 20:22
104 lines
4289 bytes
4289 bytes
In article <VdJ_e.335084$5N3.160472@bgtnsc05-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>The five groups I've hosted for five years that originally came from the
>newspapers:
>
>brisbee
>computers
>petchat
>raucouscaucus
>soapbox
>
>These five "newspaper" groups should all be behind password authentication.
Are you moving your old articles over as well, and trying to make
this seamless to the clients? If not, I'd consider putting these
inside a hierarchy (newspapers.* or local.newspapers.*) just so
your config files don't have to list them out a bunch of times.
Also, so that users who might also get other groups from other
servers will have all of your groups alphabetized into a single
location.
>None of these groups will be peering to/from USENET so there's no danger
>of like-named groups interfering (i.e "local.*" not needed).
You'd be amazed how easy it is for things to leak, but okay, as
long as you're careful.
>I plan on hosting several "open" groups as well, but do not have names
>for them yet. I'll just make up a few:
>
>announcements
>ministry-news
>prayer-requests
>testimonies-praise
>personal-family-help
>cults-occult
>bible.study-discussion
>bible.prophesy
>
>Notice I created a bible "sub-directory" for the last two groups. Might
>be overkill, but this list is only for a general idea. I will have one
>or more "partners" to dream up what they want and need in the area of
>newsgroups.
Okay, I'd definitely put these in some sort of hierarchy,
personally. Same reasons as above. I'll assume you're going to
do so below, to save me typing...
>Access to the open groups would be available to anybody, including the
>users of the newspaper groups. No password should be needed (I believe
>"authuser" will not be sent).
Open posting access to? That could potentially get you in
trouble, but we'll let it be for now.
So assuming your newspaper groups are in local.newspapers.*, and
local.newspapers.access-restricted is that special group where
you leave an announcement telling people how to get access but
nobody else could post there (if you still like that idea), and
your other groups are in local.religion.*, you'd want a
readers.conf that looks something like this:
auth "global" {
hosts: "*"
auth: "ckpasswd -f /path/to/password/file"
default: "<anonymous>"
}
auth "localhost" { # might be useful for testing
hosts: "stdin,localhost,127.0.0.1"
auth: "ckpasswd -f /path/to/password/file" # can test auth
default: "<localhost>" # but don't have to
}
access "authenticated" {
users: "*"
read: "local.*"
post: "local.*,!local.newspapers.access-restricted"
}
access "special" {
users: "xanadu,<localhost>"
newsgroups: "*"
access: "RPNAL"
}
access "public" {
users: "<anonymous>"
read: "local.religion.*,local.newspapers.access-restricted"
post: "local.religion.*"
}
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
Author: John F. Morse
Date: Fri, 30 Sep 2005 22:02
Date: Fri, 30 Sep 2005 22:02
43 lines
3233 bytes
3233 bytes
Jeffrey M. Vinocur wrote:
>Oof you just shut the server down hard, voluntarily? Yeah, INN
>doesn't like that. It's been better in more recent versions, but
>given the choice you should always throttle and then rc.news
>stop. You found the right procedure for fixing it, though.
>
Is it a "hard" shutdown when I use a standard "shutdown -r now"? (IOW, I
wasn't mashing the power switch. <g>)
I would think the system would take care of the tasks of sanely stopping
all running processes.
The man shutdown(8) does mention "SIGTERM ... gives programs ... mail
and news processing programs a chance to exit cleanly, etc...."
Fishing back, this was first noticed as I stated on Monday (20050926):
("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.")
However, a couple of days before I did have a commercial power failure
on Friday (20050923), which lasted about 20 minutes. Six of my UPSes
held up during the outage, but the one on my wife's PC has a
four-year-old battery, so.... <g>
Anyway, this INN server was not even plugged into any UPS when the power
failed. It was though -- before I turned it back on. <g>
There might be a remote possibility that the overview and/or message
numbers were messed up then, or at 0415 Saturday morning when the expiry
runs. I don't believe this though, due to the missing e-mail status
report on Monday, and posting/reading occurred normally until then.
The reason for the problem slipped through the cracks in the floor. It's
like a fish stealing the bait. You get nothing, except an opportunity to
try again.
--
John
Re: Authentication advice
Author: John F. Morse
Date: Fri, 30 Sep 2005 22:58
Date: Fri, 30 Sep 2005 22:58
192 lines
7313 bytes
7313 bytes
Jeffrey M. Vinocur wrote:
>In article <VdJ_e.335084$5N3.160472@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>
>>The five groups I've hosted for five years that originally came from the
>>newspapers:
>>
>>brisbee
>>computers
>>petchat
>>raucouscaucus
>>soapbox
>>
>>These five "newspaper" groups should all be behind password authentication.
>>
>>
>
>Are you moving your old articles over as well, and trying to make
>this seamless to the clients? If not, I'd consider putting these
>inside a hierarchy (newspapers.* or local.newspapers.*) just so
>your config files don't have to list them out a bunch of times.
>
>
Yes. There are some historically-significant articles. One group,
brisbee, is huge.
I lost a few messages from the startup in July 2000, when we had a big
ice storm in February 2001.
There are several users who cancel their messages after a few days. I
don't like this, but these are their messages. Or are they; some might
compare this to defacing a library or museum of history. One is a heavy
poster, so the total messages in Brisbee would probably exceed 50,000 if
he didn't cancel.
Here is a telnet list (you can see I've added the test and local.test
groups):
200 RumorMill (1.3.3) Macintosh NNTP Server on news.xanadu-bbs.net ready
(login required)
xpass ********
281 Password accepted
list
215 list of newsgroups follows
brisbee 125 33188 y
computers 27 3280 y
control 1 3726 y
local.test 1 7 y
petchat 10 918 y
raucouscaucus 6 174 y
soapbox 1 3708 y
test 1 4 y
.BASH
quit
205 - goodbye!
I would love to make this seamless! I had read something about a sync
command, and thought I'd get to studying it when the time comes to load
the new server. If the messages can retain the same message number, then
the users might not need to delete the server account from their news
client, then start it over.
If this isn't possible, then I thought I could use "suck" to pull all of
them. This would renumber them sequentially,
requiring the users to jump through hoops to sync their clients.
I will be needing something like suck anyway, for the two ISPs where I
pull a couple of groups using a "mode:reader" type of command as opposed
to streaming. And for the other way (upstream from here) a "post" command.
Ideas?
I'm going to read the rest of this message later tonight, digest it,
then comment later (if required). If it becomes too much of a hassle, I
could always run more than one server -- one for the newspaper bunch,
and another for the future dreams. That would seem like a waste of
electricity though, as INN should be able to handle the complications --
as long as you and I can. ;-)
Last night I did manage to get the password database encrypted. First
time I've used Perl (well, to do something specific), so I had a
learning curve there. I should have asked you, but I eventually tried
running Perl from a shell, and using the "my" as the filename for the
plain text database. It didn't output any file though, so I used a KDE
terminal and copied the output, pasting it into a new textfile.
Where there's a will, there's a way. <g>
Thanks, and wish me "luck"!
--
John
>Also, so that users who might also get other groups from other
>servers will have all of your groups alphabetized into a single
>location.
>
>
>
>
>>None of these groups will be peering to/from USENET so there's no danger
>>of like-named groups interfering (i.e "local.*" not needed).
>>
>>
>
>You'd be amazed how easy it is for things to leak, but okay, as
>long as you're careful.
>
>
>
>
>>I plan on hosting several "open" groups as well, but do not have names
>>for them yet. I'll just make up a few:
>>
>>announcements
>>ministry-news
>>prayer-requests
>>testimonies-praise
>>personal-family-help
>>cults-occult
>>bible.study-discussion
>>bible.prophesy
>>
>>Notice I created a bible "sub-directory" for the last two groups. Might
>>be overkill, but this list is only for a general idea. I will have one
>>or more "partners" to dream up what they want and need in the area of
>>newsgroups.
>>
>>
>
>Okay, I'd definitely put these in some sort of hierarchy,
>personally. Same reasons as above. I'll assume you're going to
>do so below, to save me typing...
>
>
>
>
>>Access to the open groups would be available to anybody, including the
>>users of the newspaper groups. No password should be needed (I believe
>>"authuser" will not be sent).
>>
>>
>
>Open posting access to? That could potentially get you in
>trouble, but we'll let it be for now.
>
>So assuming your newspaper groups are in local.newspapers.*, and
>local.newspapers.access-restricted is that special group where
>you leave an announcement telling people how to get access but
>nobody else could post there (if you still like that idea), and
>your other groups are in local.religion.*, you'd want a
>readers.conf that looks something like this:
>
> auth "global" {
> hosts: "*"
> auth: "ckpasswd -f /path/to/password/file"
> default: "<anonymous>"
> }
>
> auth "localhost" { # might be useful for testing
> hosts: "stdin,localhost,127.0.0.1"
> auth: "ckpasswd -f /path/to/password/file" # can test auth
> default: "<localhost>" # but don't have to
> }
>
>
>
> access "authenticated" {
> users: "*"
> read: "local.*"
> post: "local.*,!local.newspapers.access-restricted"
> }
>
> access "special" {
> users: "xanadu,<localhost>"
> newsgroups: "*"
> access: "RPNAL"
> }
>
> access "public" {
> users: "<anonymous>"
> read: "local.religion.*,local.newspapers.access-restricted"
> post: "local.religion.*"
> }
>
>
>
>
>
Re: Authentication advice
Author: John F. Morse
Date: Sun, 02 Oct 2005 04:56
Date: Sun, 02 Oct 2005 04:56
84 lines
3873 bytes
3873 bytes
Jeffrey M. Vinocur wrote:
>In article <2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>And then your user-database file should be like this:
>
> johnsmith:j803asdf29
> suebrown:la390fas3
> mikejohnson:p3a0jxzmli
>
>Where the second field is the encrypted password (in regular unix
>fashion). The easiest way to mainting this file is to use the
>"htpasswd" tool which is probably already installed on your
>machine as part of Apache. See `man htpasswd` for details.
>
Jeff,
I had the "username:password:misc" data file encrypted with the perl
script you provided. Today, when I was checking the file using the
example in ckpasswd(8), to wit:
----
To test to make sure that ckpasswd is working correctly, you can run it
manually and then give it the username (prefixed with "ClientAuthname:")
and password (prefixed with "ClientPassword:") on standard input. For
example:
(echo 'ClientAuthname: test' ; echo 'ClientPassword: testing') |
ckpasswd -f /path/to/passwd/file
will check a username of "test" and a password of "testing" against the
username and passwords stored in /path/to/passwd/file. On success,
ckpasswd will print "User:test" and exit with status 0. On failure, it
will print some sort of error message and exit a non-zero status.
----
I received errors on two users. All the others passed.
I examined the file and found odd lines (errors) like this one:
sh: line 1: K8?: command not found
bschneider:esVfW2VF4fFGK:Bob Schneider
This was for a user with the following info:
bschneider:r7&K8$g51?:Bob Schneider
Not really -- the name and real password is munged, but without
destroying the area where you can see the K8 follows an ampersand ("&").
The other user's password entry also contains the ampersand.
I tried using htpasswd to "manually" edit this users password and it
also had a problem with the ampersand.
Man BASH indicates that the ampersand is a "metacharacter that, when
unquoted, separates words."
Sounds like this may be the trouble.
Man BASH goes on to explain quoting, using the escape character (\),
single quotes, and double quotes.
I tried the single and double quotes around the whole password
"r7&K8$g51?" but that did no good.
Then I started wondering what if a user wanted to use a single or double
quote, or the backslash, as part of their password?
Oddly, these two users are my only two Linux users. Talk about strong
passwords -- they are so strong they cannot be encrypted! ;-)
Got any ideas or fixes?
TIA,
--
John
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Sun, 02 Oct 2005 18:50
Date: Sun, 02 Oct 2005 18:50
24 lines
2000 bytes
2000 bytes
In article <BBi%e.346148$5N3.263714@bgtnsc05-news.ops.worldnet.att.net>, John F. Morse <xanadu.bbs@invalid.net> wrote: > >I would think the system would take care of the tasks of sanely stopping >all running processes. I'm not actually sure how cleanly INN handles SIGTERM, actually. I always throttle it and then shut down manually given the chance. >However, a couple of days before I did have a commercial power failure >on Friday (20050923), which lasted about 20 minutes. Oh ho. It's possible, at least in a low-traffic server like yours, for a couple days to go by with no articles posted to whatever group got corrupted by an unclean shutdown. The SMstore error only appears when a new article comes in and gets assigned an article number that had been used just as the crash happened. -- Jeffrey M. Vinocur jeff@litech.org
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Sun, 02 Oct 2005 19:03
Date: Sun, 02 Oct 2005 19:03
72 lines
4516 bytes
4516 bytes
In article <gqj%e.346362$5N3.329060@bgtnsc05-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>Jeffrey M. Vinocur wrote:
>
>>Are you moving your old articles over as well, and trying to make
>>this seamless to the clients? If not, I'd consider putting these
>>inside a hierarchy (newspapers.* or local.newspapers.*) just so
>>your config files don't have to list them out a bunch of times.
>
>Yes. There are some historically-significant articles. [...]
>
>I would love to make this seamless! I had read something about a sync
>command, and thought I'd get to studying it when the time comes to load
>the new server. If the messages can retain the same message number, then
>the users might not need to delete the server account from their news
>client, then start it over.
Right. If you set xrefslave in inn.conf before sucking the
articles over, the numbers will stay the same. There is an entry
about this in Russ's FAQ, but it assumes that both servers
involved are INN (and so it gives a procedure for having the old
server feed articles to the new server). However, you can use a
modification of that procedure and achieve the desired result in
your case. For the most part you do as directed here:
http://www.eyrie.org/~eagle/faqs/inn.html#S6.4
especially you can't forget to set the artcutoff, to make sure
all the groups exist (empty!) on the new server, or to set
xrefslave. But instead of using innxmit to transfer the
articles, you use some sucking utility (see below).
>I will be needing something like suck anyway, for the two ISPs where I
>pull a couple of groups using a "mode:reader" type of command as opposed
>to streaming. And for the other way (upstream from here) a "post" command.
>
>Ideas?
One thing I've got to say is, if you're going to be posting
articles out to Usenet-connected servers, you need to be really
careful with all of these oddly named and uncategorized groups,
or they stand a nonzero change of showing up all over the world.
Regarding the sucking, FAQ 6.7 addresses this issue fairly well.
The "pullnews" utility that comes with INN could be used to do
your migration from the old server, but is not robust enough to
see ongoing use like you'll need for your other groups. Also it
doesn't have a facility for posting articles back up. So you'll
want to look into suck or newsx as described in the FAQ.
>Last night I did manage to get the password database encrypted. First
>time I've used Perl (well, to do something specific), so I had a
>learning curve there. I should have asked you, but I eventually tried
>running Perl from a shell, and using the "my" as the filename for the
>plain text database. It didn't output any file though, so I used a KDE
>terminal and copied the output, pasting it into a new textfile.
I thought about posting detailed instructions, but then I figured
you'd ask if you needed them. For future reference, you could
have listed a filename on the commandline and the script would
have used that as input (or you could have provided it on stdin).
It purposefully didn't put the output into a file, because you
could simply have added "> newpasswdfile" onto the end of the
commandline and your shell would have written it to a file for
you.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Sun, 02 Oct 2005 19:16
Date: Sun, 02 Oct 2005 19:16
66 lines
3712 bytes
3712 bytes
In article <7MJ%e.353849$5N3.165070@bgtnsc05-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>I had the "username:password:misc" data file encrypted with the perl
>script you provided. Today, when I was checking the file using the
>example in ckpasswd(8), to wit:
Hmm, that looks like an old version of the ckpasswd manpage, btw.
Or maybe it goes with an old version of ckpasswd? A while back
Russ added support for `ckpasswd -u username -p password` as a
handy way to test without having to do echo commands like that.
But your problem report below is still relevant regardless.
>sh: line 1: K8?: command not found
>bschneider:esVfW2VF4fFGK:Bob Schneider
>
>This was for a user with the following info:
>
>bschneider:r7&K8$g51?:Bob Schneider
Whoa, you're absolutely right, my script didn't handle passwords
with shell metacharacters in them. It's easy to fix the script,
just adjust the line that calls htpasswd to have single quotes:
my $out = `htpasswd2 -ndb '$user' '$pass'`;
>I tried the single and double quotes around the whole password
>"r7&K8$g51?" but that did no good.
Adjusting the script as above should take care of it.
When you're using htpasswd and providing the password on the
commandline (but not when you let htpasswd prompt you for the
password), you'll want to put single quotes around passwords like
that. Same goes for using ckpasswd for testing as mentioned
above.
But users wouldn't have to put them in their news clients -- the
issue is whether or not the unix shell lays hands on the data,
since that's what's misinterpreting them all. So in the Perl
script I wrote you, using the `` backticks leads to a shell
interpreting the strings.
The intricacies of shell quoting are painful and tedious to
learn, unfortunately, and I'm sure you'll encounter them again.
Get in the habit of using single quotes unless you have a
specific need for double quotes, and you'll be much happier in
the end. (For example, if your user had put a $ in the password,
and you used double quotes, it still wouldn't work properly
because the shell would be interpreting the $ as a variable
reference, even inside double quotes -- but not single quotes.)
>Then I started wondering what if a user wanted to use a single or double
>quote, or the backslash, as part of their password?
They could, but it would require a much more careful job in that
script. The underlying INN software would manage it correctly in
the end, but it probably wouldn't be worth the trouble.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
Author: Jon Bell
Date: Sun, 02 Oct 2005 21:48
Date: Sun, 02 Oct 2005 21:48
16 lines
1886 bytes
1886 bytes
In article <bill-AE498B.10482630092005@toaster.scconsult.com>, Bill Cole <bill@scconsult.com> wrote: > > [...] INN 2.4.x builds from the distribution >source cleanly on MacOS 10.4.y for multiple combinations of x and y >values. Excellent! Thanks for posting that. I've been putting off upgrading my college's MacOS-hosted news server from 10.3 to 10.4 because of the hassle I had with moving to 10.3 thanks to the mmap() problem. Now I know I can go ahead and do it over fall break next week, and probably not have to spend the whole break working around problems. :-) -- Jon Bell <jtbell@presby.edu> Presbyterian College Dept. of Physics and Computer Science Clinton, South Carolina USA
Re: Authentication advice
Author: John F. Morse
Date: Mon, 03 Oct 2005 00:27
Date: Mon, 03 Oct 2005 00:27
48 lines
3119 bytes
3119 bytes
Jeffrey M. Vinocur wrote:
>In article <BBi%e.346148$5N3.263714@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>
>>I would think the system would take care of the tasks of sanely stopping
>>all running processes.
>>
>>
>
>I'm not actually sure how cleanly INN handles SIGTERM, actually.
>I always throttle it and then shut down manually given the
>chance.
>
>
>
>
>>However, a couple of days before I did have a commercial power failure
>>on Friday (20050923), which lasted about 20 minutes.
>>
>>
>
>Oh ho. It's possible, at least in a low-traffic server like
>yours, for a couple days to go by with no articles posted to
>whatever group got corrupted by an unclean shutdown. The SMstore
>error only appears when a new article comes in and gets assigned
>an article number that had been used just as the crash happened.
>
I see INN reported as being shutdown when I reboot, but maybe it doesn't
shut it down cleanly, or in the correct sequence (with a message in limbo).
The trouble Sunday wasn't the power failure on Friday. We have around
100 messages per day in the brisbee group, and showed up fine all
weekend. On Monday morning there were many log failures reported
("tradspool: could not open ... File exists").
I suspect is was a reboot that caused this problem, and will throttle
before rebooting in the future. I probably didn't need to reboot in the
first place, but just restart X for root, as the File Browser was not
responding. This is used mainly for network access to another Linux
box, which I used for running the perl script.
I'm not gonna worry about it anymore.
--
John
Re: Authentication advice
Author: John F. Morse
Date: Mon, 03 Oct 2005 01:17
Date: Mon, 03 Oct 2005 01:17
127 lines
6526 bytes
6526 bytes
Jeffrey M. Vinocur wrote: >In article <gqj%e.346362$5N3.329060@bgtnsc05-news.ops.worldnet.att.net>, >John F. Morse <xanadu.bbs@invalid.net> wrote: > > >>Jeffrey M. Vinocur wrote: >> >> >> >>>Are you moving your old articles over as well, and trying to make >>>this seamless to the clients? If not, I'd consider putting these >>>inside a hierarchy (newspapers.* or local.newspapers.*) just so >>>your config files don't have to list them out a bunch of times. >>> >>> >>Yes. There are some historically-significant articles. [...] >> >>I would love to make this seamless! I had read something about a sync >>command, and thought I'd get to studying it when the time comes to load >>the new server. If the messages can retain the same message number, then >>the users might not need to delete the server account from their news >>client, then start it over. >> >> > >Right. If you set xrefslave in inn.conf before sucking the >articles over, the numbers will stay the same. There is an entry >about this in Russ's FAQ, but it assumes that both servers >involved are INN (and so it gives a procedure for having the old >server feed articles to the new server). However, you can use a >modification of that procedure and achieve the desired result in >your case. For the most part you do as directed here: > > http://www.eyrie.org/~eagle/faqs/inn.html#S6.4 > >especially you can't forget to set the artcutoff, to make sure >all the groups exist (empty!) on the new server, or to set >xrefslave. But instead of using innxmit to transfer the >articles, you use some sucking utility (see below). > > Thanks for this info. I'm going to get authentication working first, before the server is loaded with thousands of messages. After it is loaded, I'll let a couple of testers post to it, and let the main online server keep via streaming (which seems to be working fine now). >>I will be needing something like suck anyway, for the two ISPs where I >>pull a couple of groups using a "mode:reader" type of command as opposed >>to streaming. And for the other way (upstream from here) a "post" command. >> >>Ideas? >> >> > >One thing I've got to say is, if you're going to be posting >articles out to Usenet-connected servers, you need to be really >careful with all of these oddly named and uncategorized groups, >or they stand a nonzero change of showing up all over the world. > > I don't post now. I did back in 2000, but a news admin at Worldnet asked me if I was posting back to them because they were seeing canceled articles reappearing. It wasn't me though because they appeared in groups that I didn't post into. My theory is users can access USENET via their ISP, or pay for a news provider account. I don't want to mirror any outside newsgroup, nor provide the disk space. Users can't see the two I suck now. They are on the first server downstream from the online server. >Regarding the sucking, FAQ 6.7 addresses this issue fairly well. >The "pullnews" utility that comes with INN could be used to do >your migration from the old server, but is not robust enough to >see ongoing use like you'll need for your other groups. Also it >doesn't have a facility for posting articles back up. So you'll >want to look into suck or newsx as described in the FAQ. > > The two groups I suck only get 10-20 articles per day, on a good day. Thanks for this info. I'll be getting into it later this week. My central air quit today. I dug into the outside unit and discovered one side of the 230 volt line had a old wire with crumbling insulation. It had shorted to the housing, probably more than once, then finally burned open today. I replaced it with a short piece of #10 and a new wirenut. All is fine now, and some A/C company isn't getting $3000 from me to replace my old compressor. ;-) >>Last night I did manage to get the password database encrypted. First >>time I've used Perl (well, to do something specific), so I had a >>learning curve there. I should have asked you, but I eventually tried >>running Perl from a shell, and using the "my" as the filename for the >>plain text database. It didn't output any file though, so I used a KDE >>terminal and copied the output, pasting it into a new textfile. >> >> > >I thought about posting detailed instructions, but then I figured >you'd ask if you needed them. For future reference, you could >have listed a filename on the commandline and the script would >have used that as input (or you could have provided it on stdin). >It purposefully didn't put the output into a file, because you >could simply have added "> newpasswdfile" onto the end of the >commandline and your shell would have written it to a file for >you. > I did use "perl encrypt my" where "encrypt" is your perl script, and my is the textfile with the names and passwords. I presume that is what you mean? I'll try the stdout redirect to a file tonight and see how it works. -- John
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Mon, 03 Oct 2005 02:03
Date: Mon, 03 Oct 2005 02:03
30 lines
1981 bytes
1981 bytes
In article <XE%%e.359234$5N3.31475@bgtnsc05-news.ops.worldnet.att.net>, John F. Morse <xanadu.bbs@invalid.net> wrote: > > >I did use "perl encrypt my" where "encrypt" is your perl script, and my >is the textfile with the names and passwords. I presume that is what you >mean? Yup. (I was confused because "my" in Perl defines a new variable. So I thought maybe you had somehow been hardcoding your filename into the script, which would be silly -- but you weren't.) You can also do these: perl encrypt < my cat my | perl encrypt And if you `chmod a+x encrypt` (and make sure the first line of the script points to where perl actually is on your system), you be more direct: ./encrypt my ./encrypt < my cat my | ./encrypt -- Jeffrey M. Vinocur jeff@litech.org
Re: Authentication advice
Author: John F. Morse
Date: Mon, 03 Oct 2005 13:08
Date: Mon, 03 Oct 2005 13:08
135 lines
5690 bytes
5690 bytes
Jeffrey M. Vinocur wrote: >In article <7MJ%e.353849$5N3.165070@bgtnsc05-news.ops.worldnet.att.net>, >John F. Morse <xanadu.bbs@invalid.net> wrote: > > >>I had the "username:password:misc" data file encrypted with the perl >>script you provided. Today, when I was checking the file using the >>example in ckpasswd(8), to wit: >> >> > >Hmm, that looks like an old version of the ckpasswd manpage, btw. >Or maybe it goes with an old version of ckpasswd? A while back >Russ added support for `ckpasswd -u username -p password` as a >handy way to test without having to do echo commands like that. >But your problem report below is still relevant regardless. > > This shows "Last spun 2005-06-07 from POD modified 2005-06-06" which must be Russ' version ($Id: ckpasswd.pod 7215 2005-04-11 20:43:21Z rra $). In fact, I got it from here: http://www.eyrie.org/~eagle/software/inn/docs-2.4/ckpasswd.html The man pages in Debian 3.1r0a are dated 2003-07-30 ($Id: ckpasswd.8,v 1.2.2.2 2003/08/08 22:02:42 vinocur Exp $). I ran it, but received "ckpasswd: pam_authenticate failed: Authentication failure" and can find no way to force it to use crypt instead of pam, if possible. It does have the -u and -p options. >>sh: line 1: K8?: command not found >>bschneider:esVfW2VF4fFGK:Bob Schneider >> >>This was for a user with the following info: >> >>bschneider:r7&K8$g51?:Bob Schneider >> >> > >Whoa, you're absolutely right, my script didn't handle passwords >with shell metacharacters in them. It's easy to fix the script, >just adjust the line that calls htpasswd to have single quotes: > > my $out = `htpasswd2 -ndb '$user' '$pass'`; > > You are using a single quote (the apostrophe) for the $user and $pass variables, then using an acute accent diphthong (ligature) as a different "single quote"? I'm an old graphic artist typesetter, so I'm not aware of the various "metacharacters" used in Perl, BASH, C++, etc. ;-) I see I've go some studying to do. >>I tried the single and double quotes around the whole password >>"r7&K8$g51?" but that did no good. >> >> > >Adjusting the script as above should take care of it. > >When you're using htpasswd and providing the password on the >commandline (but not when you let htpasswd prompt you for the >password), you'll want to put single quotes around passwords like >that. Same goes for using ckpasswd for testing as mentioned >above. > > I'll try this -- with the apostrophe and the acute diphthong -- just to learn what works and what doesn't. (Much faster than searching for and through man pages.) ;-) >But users wouldn't have to put them in their news clients -- the >issue is whether or not the unix shell lays hands on the data, >since that's what's misinterpreting them all. So in the Perl >script I wrote you, using the `` backticks leads to a shell >interpreting the strings. > > Understood. My use of the quotes was around the password in the textfile, but they must be used in the shell expression to force it into obedience. >The intricacies of shell quoting are painful and tedious to >learn, unfortunately, and I'm sure you'll encounter them again. >Get in the habit of using single quotes unless you have a >specific need for double quotes, and you'll be much happier in >the end. (For example, if your user had put a $ in the password, >and you used double quotes, it still wouldn't work properly >because the shell would be interpreting the $ as a variable >reference, even inside double quotes -- but not single quotes.) > > The other Linux user with the ampersand also had the dollar sign in the password! I read about this in man bash, but figured the ampersand blockade was the first to fix. >>Then I started wondering what if a user wanted to use a single or double >>quote, or the backslash, as part of their password? >> >> > >They could, but it would require a much more careful job in that >script. The underlying INN software would manage it correctly in >the end, but it probably wouldn't be worth the trouble. > Perhaps I should inform (new) users to avoid using the ampersand and dollar sign in their password selection? Any other possible trouble-makers come to mind? -- John
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Mon, 03 Oct 2005 14:18
Date: Mon, 03 Oct 2005 14:18
102 lines
5314 bytes
5314 bytes
In article <v3a0f.104385$qY1.71720@bgtnsc04-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>This shows "Last spun 2005-06-07 from POD modified 2005-06-06" which
>must be Russ' version ($Id: ckpasswd.pod 7215 2005-04-11 20:43:21Z rra $).
Okay, ignore my comment -- I was looking at an outdated ckpasswd
manpage that I assumed was newer than yours. (Apparently
somebody moved ckpasswd from man1 to man8 ages ago, and my man
managed to find the old one!)
>I ran it, but received "ckpasswd: pam_authenticate failed:
>Authentication failure" and can find no way to force it to use crypt
>instead of pam, if possible.
Are we talking about using -u and -p here? As long as you
provide a -f on the commandline also, I think it should work...
>You are using a single quote (the apostrophe) for the $user and $pass
>variables, then using an acute accent diphthong (ligature) as a
>different "single quote"?
Right... single quotes (') are a way to make strings without
interpreting the contents. Double quotes (") are similar to
single quotes, but allow $variables to be interpolated into them.
Backticks (`) are very different despite the graphical
similarity, and indicate that the string inside of them should be
run as a command and the output of that command substituted in
for the whole backtick expression. So like this:
> echo Now it is `date` but soon it will be later.
Now it is Mon Oct 3 09:58:37 EDT 2005 but soon it will be later.
But backticks allow interpretation by default, so compare the
commands below and it should become more clear. I'm using the -p
flag to get plaintext outputs so you can see what is actually
getting fed to htpasswd.
Semicolon tells the shell to run two separate commands (ampersand
is similar to semicolon but runs the first command in the
background and starts the second without waiting for the first to
finish, in this case I think it would just confuse the issue --
but that's why your passwords with ampersand were trouble).
> echo My password file line is `htpasswd -ndbp jeff xy`
My password file line is jeff:xy
# Works fine with no special characters in the password
> echo My password file line is `htpasswd -ndbp jeff xy;blahblah`
My password file line is jeff:xy
blahblahblah: Command not found.
# Uh oh, that semicolon made the shell run the password
> echo My password file line is `htpasswd -ndbp jeff xy;date`
My password file line is jeff:xy
Mon Oct 3 10:03:10 EDT 2005
# But with a real command, it could even work!
> echo My password file line is `htpasswd -ndbp jeff "xy;date"`
My password file line is jeff:xy;date
# Double quotes fix some metacharacters
> echo My password file line is `htpasswd -ndbp jeff "xy$shell"`
My password file line is jeff:xy/bin/tcsh
# But dollar signs still get interpreted as variables
> echo My password file line is `htpasswd -ndbp jeff "xy$blah"`
blah: Undefined variable.
My password file line is
# Oops
> echo My password file line is `htpasswd -ndbp jeff 'xy$blah;date'`
My password file line is jeff:xy$blah;date
# Finally it works
# ...unless there's a single quote in the password
>Perhaps I should inform (new) users to avoid using the ampersand and
>dollar sign in their password selection? Any other possible
>trouble-makers come to mind?
Well, the trouble is that people like to use punctuation to make
strong passwords, but almost all the punctuation can be
misinterpreted by the shell. Definitely any of these could give
you trouble `~!#$&*()[]{}|\'";?<> depending on circumstances, and
I've probably missed some. So realistically you have to let
people use punctuation within reason -- I should have gotten that
script right with the quotes in the first place. For this
application, you should avoid whitespace in passwords, and avoid
single quotes, I guess, and everything else should now be okay.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
Author: John F. Morse
Date: Wed, 05 Oct 2005 03:15
Date: Wed, 05 Oct 2005 03:15
115 lines
4659 bytes
4659 bytes
Jeffrey M. Vinocur wrote:
>In article <VdJ_e.335084$5N3.160472@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>>Access to the open groups would be available to anybody, including the
>>users of the newspaper groups. No password should be needed (I believe
>>"authuser" will not be sent).
>>
>>
>
>Open posting access to? That could potentially get you in
>trouble, but we'll let it be for now.
>
>
Open to anyone. No password required. Such would be the religious groups.
>So assuming your newspaper groups are in local.newspapers.*, and
>local.newspapers.access-restricted is that special group where
>you leave an announcement telling people how to get access but
>nobody else could post there (if you still like that idea), and
>your other groups are in local.religion.*, you'd want a
>readers.conf that looks something like this:
>
> auth "global" {
> hosts: "*"
> auth: "ckpasswd -f /path/to/password/file"
> default: "<anonymous>"
> }
>
> auth "localhost" { # might be useful for testing
> hosts: "stdin,localhost,127.0.0.1"
> auth: "ckpasswd -f /path/to/password/file" # can test auth
> default: "<localhost>" # but don't have to
> }
>
>
>
> access "authenticated" {
> users: "*"
> read: "local.*"
> post: "local.*,!local.newspapers.access-restricted"
> }
>
> access "special" {
> users: "xanadu,<localhost>"
> newsgroups: "*"
> access: "RPNAL"
> }
>
> access "public" {
> users: "<anonymous>"
> read: "local.religion.*,local.newspapers.access-restricted"
> post: "local.religion.*"
>
I modified you example to that shown below.
When attempting to gain access from another Debian box, which did work
with the original readers.conf, I get no authentication prompting for
any username or password.
Thunderbird gives me the following error message: "A News (NNTP) error
occurred: NNTP server unavailable. Try later."
This error is when I try to download any new articles, or when I try to
refresh the list of newsgroups.
If I check "Always request authentication when connecting to this
server" in the Thunderbird account settings for this news server, I get
the same message. This must be unchecked for my original readers.conf to
work.
Any ideas, or do you see any errors in the readers.conf below?
I had to use the full path to ckpasswd or it cannot find the file
(ckpasswd: command not found).
------------------------------------------------------------------------
auth "global" {
hosts: "*"
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /var/lib/news/passlist"
default: "<anonymous>
}
auth "localhost" {
hosts: "stdin,localhost,127.0.0.1"
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /var/lib/news/passlist"
default: "<localhost>"
}
access "authenticated" {
users "*"
read: "brisbee,computers,petchat,raucouscaucus,soapbox"
post: "brisbee,computers,petchat,raucouscaucus,soapbox"
}
access "special" {
users: "<localhost>"
newsgroups: "*"
access: "RPNAL"
}
access: "public" {
users: "<anonymous>"
read: "local.*"
post: "local.*"
)
--
John
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Wed, 05 Oct 2005 12:31
Date: Wed, 05 Oct 2005 12:31
45 lines
2449 bytes
2449 bytes
In article <zzH0f.109820$qY1.395@bgtnsc04-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>I modified you example to that shown below.
Well, I'm not sure the modifications do what you think they do,
but that's okay, it should still -work-, so we'll fix that first.
>When attempting to gain access from another Debian box, which did work
>with the original readers.conf, I get no authentication prompting for
>any username or password.
Right, when you have a default: line in the auth block that
matches, you won't get prompted for authentication. That's
necessary to allow unauthenticated users to access groups.
>Thunderbird gives me the following error message: "A News (NNTP) error
>occurred: NNTP server unavailable. Try later."
I think we need to see what's in the news.notice logfile
corresponding to this connection attempt.
You might also try telnet to port 119 of the news server and
sending commands by hand, like this:
MODE READER
LIST
AUTHINFO USER bob
AUTHINFO PASS t0ps3cre7
LIST
>Any ideas, or do you see any errors in the readers.conf below?
There's a missing quote on this line:
> default: "<anonymous>
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
Author: John F. Morse
Date: Wed, 05 Oct 2005 15:31
Date: Wed, 05 Oct 2005 15:31
73 lines
3099 bytes
3099 bytes
Jeffrey M. Vinocur wrote: >In article <zzH0f.109820$qY1.395@bgtnsc04-news.ops.worldnet.att.net>, >John F. Morse <xanadu.bbs@invalid.net> wrote: > > >>I modified you example to that shown below. >> >> > >Well, I'm not sure the modifications do what you think they do, >but that's okay, it should still -work-, so we'll fix that first. > > > > > >>When attempting to gain access from another Debian box, which did work >>with the original readers.conf, I get no authentication prompting for >>any username or password. >> >> > >Right, when you have a default: line in the auth block that >matches, you won't get prompted for authentication. That's >necessary to allow unauthenticated users to access groups. > > > > >>Thunderbird gives me the following error message: "A News (NNTP) error >>occurred: NNTP server unavailable. Try later." >> >> > >I think we need to see what's in the news.notice logfile >corresponding to this connection attempt. > >You might also try telnet to port 119 of the news server and >sending commands by hand, like this: > > MODE READER > LIST > AUTHINFO USER bob > AUTHINFO PASS t0ps3cre7 > LIST > > john@Giuseppe:~$ telnet telnet> o (to) 192.168.89.28 119 Trying 192.168.89.28... Connected to 192.168.89.28. Escape character is '^]'. 503 NNTP server unavailable. Try later. Connection closed by foreign host. john@Giuseppe:~$ >There's a missing quote on this line: > > > >> default: "<anonymous> >> I looked over this file numerous times and saw no missing quote, but sure enough, it vanished! ;-) Replacing (or adding <g>) it made no difference. Still the same failure.
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Wed, 05 Oct 2005 17:14
Date: Wed, 05 Oct 2005 17:14
14 lines
1564 bytes
1564 bytes
In article <slS0f.375083$5N3.180049@bgtnsc05-news.ops.worldnet.att.net>, John F. Morse <xanadu.bbs@invalid.net> wrote: > >503 NNTP server unavailable. Try later. Yeah, definitely need to see what's in news.notice. You should always look in the logs with any INN error. It's impossible to debug without them. -- Jeffrey M. Vinocur jeff@litech.org
Re: Authentication advice
Author: John F. Morse
Date: Wed, 05 Oct 2005 19:17
Date: Wed, 05 Oct 2005 19:17
116 lines
6364 bytes
6364 bytes
Jeffrey M. Vinocur wrote:
>In article <slS0f.375083$5N3.180049@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>
>>503 NNTP server unavailable. Try later.
>>
>>
>
>Yeah, definitely need to see what's in news.notice.
>
>You should always look in the logs with any INN error. It's
>impossible to debug without them.
>
Following is the news.notice segment during the latest test.
There are a couple of peer entries, but the first Thunderbird news
client access was at 13:34:15, using my original readers.conf. I don't
know why there was such a delay from that time to 13:35:06 for the last
group, test, but this is not the authentication problem.
At 13:35:20-13:35:2 a message is streamed in from a peer.
I switched readers.conf files to the new one, then with Thunderbird,
accessed the server again at 13:39:24 and received the authentication
error. I see a syntax error, "Unexpected token: *" which, if I may make
a guess, is line 14, (users "*") in the first access stanza
("authenticated"). Perhaps a wildmat is not allowed in a "users:" parameter?
At 13:39:50 I made an attempt to connect via telnet, which shows the
same syntax error.
I then switched the readers.conf files back and connected normally at
13:40:54. This time I only requested a refresh of the groups using
Thunderbird, and all went well.
Restating my desires, in case there was some confusion, I want the
authenticated users to have total access to all groups (except control
groups which I will "!" out).
The anonymous users can have access except to the five groups that I
presently host.
Oct 5 13:25:21 localhost innd: news61.xanadu-bbs.net connected 17
streaming allowed
Oct 5 13:25:21 localhost innd: news61.xanadu-bbs.net:17 NCmode "mode
stream" received
Oct 5 13:25:21 localhost innd: news61.xanadu-bbs.net:17 closed seconds
0 accepted 1 refused 0 rejected 0 duplicate 0 accepted size 2974
duplicate size 0
Oct 5 13:29:57 localhost innfeed[861]: ME articles active 0 bytes 0
Oct 5 13:29:57 localhost innfeed[861]: ME articles total 0 bytes 0
Oct 5 13:34:14 localhost nnrpd[3450]: giuseppe.xanadu-bbs.net
(192.168.89.140) connect
Oct 5 13:34:15 localhost nnrpd[3450]: giuseppe.xanadu-bbs.net group
brisbee 0
Oct 5 13:34:15 localhost nnrpd[3450]: giuseppe.xanadu-bbs.net group
computers 0
Oct 5 13:34:15 localhost nnrpd[3450]: giuseppe.xanadu-bbs.net group
control.cancel 0
Oct 5 13:34:15 localhost nnrpd[3450]: giuseppe.xanadu-bbs.net group
local.general 0
Oct 5 13:34:15 localhost nnrpd[3450]: giuseppe.xanadu-bbs.net group
local.test 0
Oct 5 13:34:15 localhost nnrpd[3450]: giuseppe.xanadu-bbs.net group
petchat 0
Oct 5 13:34:15 localhost nnrpd[3450]: giuseppe.xanadu-bbs.net group
raucouscaucus 0
Oct 5 13:34:15 localhost nnrpd[3450]: giuseppe.xanadu-bbs.net group
soapbox 0
Oct 5 13:35:06 localhost nnrpd[3450]: giuseppe.xanadu-bbs.net group test 0
Oct 5 13:35:20 localhost innd: news61.xanadu-bbs.net connected 17
streaming allowed
Oct 5 13:35:20 localhost innd: news61.xanadu-bbs.net:17 NCmode "mode
stream" received
Oct 5 13:35:21 localhost innd: news61.xanadu-bbs.net:17 closed seconds
1 accepted 1 refused 0 rejected 0 duplicate 0 accepted size 21727
duplicate size 0
Oct 5 13:39:24 localhost nnrpd[3450]: giuseppe.xanadu-bbs.net group
brisbee 0
Oct 5 13:39:24 localhost nnrpd[3450]: giuseppe.xanadu-bbs.net times
user 0.040 system 0.010 idle 0.000 elapsed 309.501
Oct 5 13:39:24 localhost nnrpd[3450]: giuseppe.xanadu-bbs.net time
309504 idle 309210(13) nntpwrite 5(29)
Oct 5 13:39:24 localhost nnrpd[3747]: giuseppe.xanadu-bbs.net
(192.168.89.140) connect
Oct 5 13:39:24 localhost nnrpd[3747]: giuseppe.xanadu-bbs.net syntax
error in /etc/news/readers.conf(14), Unexpected token: *
Oct 5 13:39:24 localhost nnrpd[3747]: giuseppe.xanadu-bbs.net times
user 0.040 system 0.010 idle 0.000 elapsed 0.140
Oct 5 13:39:24 localhost nnrpd[3747]: giuseppe.xanadu-bbs.net time 140
nntpwrite 0(1)
Oct 5 13:39:50 localhost nnrpd[3748]: giuseppe.xanadu-bbs.net
(192.168.89.140) connect
Oct 5 13:39:50 localhost nnrpd[3748]: giuseppe.xanadu-bbs.net syntax
error in /etc/news/readers.conf(14), Unexpected token: *
Oct 5 13:39:50 localhost nnrpd[3748]: giuseppe.xanadu-bbs.net times
user 0.020 system 0.020 idle 0.000 elapsed 0.055
Oct 5 13:39:50 localhost nnrpd[3748]: giuseppe.xanadu-bbs.net time 58
nntpwrite 0(1)
Oct 5 13:39:57 localhost innfeed[861]: ME articles active 0 bytes 0
Oct 5 13:39:57 localhost innfeed[861]: ME articles total 0 bytes 0
Oct 5 13:40:54 localhost nnrpd[3749]: giuseppe.xanadu-bbs.net
(192.168.89.140) connect
Oct 5 13:41:04 localhost nnrpd[3749]: giuseppe.xanadu-bbs.net times
user 0.040 system 0.000 idle 0.000 elapsed 9.904
Oct 5 13:41:04 localhost nnrpd[3749]: giuseppe.xanadu-bbs.net time 9908
idle 9720(2) nntpwrite 1(15)
--
John
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Wed, 05 Oct 2005 21:51
Date: Wed, 05 Oct 2005 21:51
30 lines
1971 bytes
1971 bytes
In article <yFV0f.376066$5N3.345571@bgtnsc05-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>I see a syntax error, "Unexpected token: *" which, if I may make
>a guess, is line 14, (users "*") in the first access stanza
>("authenticated"). Perhaps a wildmat is not allowed in a "users:" parameter?
The problem is that you are missing a colon. Your line reads:
users "*"
but should read
users: "*"
>Restating my desires, in case there was some confusion, I want the
>authenticated users to have total access to all groups (except control
>groups which I will "!" out).
Right, that's what I understood, and that's what I was planning
in the original readers.conf I suggested. But in your version,
you've provided authenticated users only access to the newspaper
groups.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
Author: John F. Morse
Date: Thu, 06 Oct 2005 06:17
Date: Thu, 06 Oct 2005 06:17
236 lines
8815 bytes
8815 bytes
Jeffrey M. Vinocur wrote:
>In article <yFV0f.376066$5N3.345571@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>
>>I see a syntax error, "Unexpected token: *" which, if I may make
>>a guess, is line 14, (users "*") in the first access stanza
>>("authenticated"). Perhaps a wildmat is not allowed in a "users:" parameter?
>>
>>
>
>The problem is that you are missing a colon. Your line reads:
>
> users "*"
>
>but should read
>
> users: "*"
>
>
Red-faced, I can't believe this. Read on....
I think I have a character-eating spider down here in the basement! ;-)
Again, I swear I checked the readers.conf file carefully -- several times.
I fixed this problem by adding the missing colon, ... but it still
failed. (I do not drink -- yet!)
So I brushed away the spiders, wiped off my glasses, and found another
typo -- a colon after "access" in the last stanza! <grrrr>
I removed it, and now have a different error report:
Oct 5 21:33:13 localhost nnrpd[10506]: giuseppe.xanadu-bbs.net
(192.168.89.140) connect
Oct 5 21:33:13 localhost nnrpd[10506]: giuseppe.xanadu-bbs.net syntax
error in /etc/news/readers.conf(30), Expected value.
Oct 5 21:33:13 localhost nnrpd[10506]: giuseppe.xanadu-bbs.net times
user 0.030 system 0.020 idle 0.000 elapsed 0.046
Oct 5 21:33:13 localhost nnrpd[10506]: giuseppe.xanadu-bbs.net time 48
nntpwrite 0(1)
Another close gaze shows a closing parentheses instead of a closing
brace (they sure do look alike at 0200 -- on the old fuzzy monitor). ;-)
I actually noticed this error when I was using another computer to
remotely copy and paste the file into this message. It has a newer and
clearer monitor. (I can't admit I'm loosing my eyesight, or I'll have to
go back to Mac'nTalk.)
>>Restating my desires, in case there was some confusion, I want the
>>authenticated users to have total access to all groups (except control
>>groups which I will "!" out).
>>
>>
>
>Right, that's what I understood, and that's what I was planning
>in the original readers.conf I suggested. But in your version,
>you've provided authenticated users only access to the newspaper
>groups.
>
>
Once we get this working, maybe I should take the time to gather up all
of my notes on dual-access privileges, and submit it for the FAQ or manual?
Below is the file in it's (supposedly) corrected condition:
auth "global" {
hosts: "*"
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /var/lib/news/passlist"
default: "<anonymous>
}
auth "localhost" {
hosts: "stdin,localhost,127.0.0.1"
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /var/lib/news/passlist"
default: "<localhost>"
}
access "authenticated" {
users: "*"
read: "brisbee,computers,petchat,raucouscaucus,soapbox"
post: "brisbee,computers,petchat,raucouscaucus,soapbox"
}
access "special" {
users: "<localhost>"
newsgroups: "*"
access: "RPNAL"
}
access "public" {
users: "<anonymous>"
read: "local.*"
post: "local.*"
}
The reason I modified your example was I didn't understand (still don't)
the use of the items I will not be using, such as references to "xanadu"
under the "special" access (or that whole stanza, for that matter).
Since I won't be using <localhost> for access, I presume the "special"
stanza would never be used. Or is it also providing power-user access
for a username "xanadu" (a remote newsmaster perhaps)? I'll keep it just
in case.
My ceramic tile installer finally finished my bathroom this evening, so
I had a little more time to work on this.
The following readers.conf seems to test out perfectly from an
authorized account, and from any annonymouse, and does correctly ask for
authentication:
auth "global" {
hosts: "*"
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /var/lib/news/passlist"
default: "<anonymous>"
}
auth "localhost" {
hosts: "stdin,localhost,127.0.0.1"
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /var/lib/news/passlist"
default: "<localhost>"
}
access "authenticated" {
users: "*"
read: "*,!junk,!control,!control.ch*,!control.n*,!control.r*"
post: "*,!junk,!control,!control.ch*,!control.n*,!control.r*"
}
access "special" {
users: "<localhost>"
newsgroups: "*"
access: "RPNAL"
}
access "public" {
users: "<anonymous>"
read:
"local.*,test,!brisbee,!computers,!petchat,!raucouscaucus,!soapbox,!control.ch*,!control.n*,!control.r*"
post:
"local.*,test,!brisbee,!computers,!petchat,!raucouscaucus,!soapbox,!control.ch*,!control.n*,!control.r*"
}
Feel free to suggest ideas (if needed) to shorten the long parameter
lines. If none, I would be limited to 8180 or 8191 characters? That's
quite long.
I believe this would be easier if I would choose to use hierarchies. But
then the longer group names would show in any news client (or be
abbreviated in some). The existing five "Brisbee" groups should not be
changed.
I could live with "local.test" which just might be a good idea since a
leak could find many "test" groups. I don't plan to peer with USENET,
but I might pull (suck) a couple of private groups from the Worldnet
domain. They are not peered to/from USENET, and I wouldn't be POSTing to
them (can't stream).
In the case of control.cancel, I will probably keep it visible, at least
for awhile. That might discourage any frequent wholesale canceling if
those users know others are watching.
Keeping it visible is the reason I had to use three "bang" control
groups to hide them. Perhaps there is a method to allow access to
control.cancel but then hide the others more easily (!control.*), if
there is a particular parsing order?
For your info, below is a telnet session so you can see the command replies:
john@Giuseppe:~$ telnet
telnet> o
(to) optima5 119
Trying 192.168.89.28...
Connected to optima5.xanadu-bbs.net.
Escape character is '^]'.
200 optima5.xanadu-bbs.net InterNetNews NNRP server INN 2.4.3 (20050407
prerelease) ready (posting ok).
list
215 Newsgroups in form "group high low flags".
local.general 0000000000 0000000001 y
local.test 0000000018 0000000011 y
test 0000000794 0000000795 y
..
mode reader
200 optima5.xanadu-bbs.net InterNetNews NNRP server INN 2.4.3 (20050407
prerelease) ready (posting ok).
list
215 Newsgroups in form "group high low flags".
local.general 0000000000 0000000001 y
local.test 0000000018 0000000011 y
test 0000000794 0000000795 y
..
authinfo user ********
381 PASS required
authinfo pass ********
281 Ok
list
215 Newsgroups in form "group high low flags".
control.cancel 0000000038 0000000023 n
local.general 0000000000 0000000001 y
local.test 0000000018 0000000011 y
brisbee 0000001469 0000000791 y
computers 0000000150 0000000071 y
petchat 0000000001 0000000001 y
soapbox 0000000012 0000000010 y
raucouscaucus 0000000002 0000000001 y
test 0000000794 0000000795 y
..
quit
205 .
Connection closed by foreign host.
john@Giuseppe:~$
Looks good to me.
Thanks so much for your help, and please forgive my repeated inability
to see and correct the typos.
Now to play with the syncing from the online server (xrefslave,
pullnews, suck, newsx, whatever) ....
--
John
Re: Authentication advice
Author: John F. Morse
Date: Thu, 06 Oct 2005 16:36
Date: Thu, 06 Oct 2005 16:36
98 lines
4722 bytes
4722 bytes
Jeffrey M. Vinocur wrote:
>In article <gqj%e.346362$5N3.329060@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>
>Right. If you set xrefslave in inn.conf before sucking the
>articles over, the numbers will stay the same. There is an entry
>about this in Russ's FAQ, but it assumes that both servers
>involved are INN (and so it gives a procedure for having the old
>server feed articles to the new server). However, you can use a
>modification of that procedure and achieve the desired result in
>your case. For the most part you do as directed here:
>
> http://www.eyrie.org/~eagle/faqs/inn.html#S6.4
>
>especially you can't forget to set the artcutoff, to make sure
>all the groups exist (empty!) on the new server, or to set
>xrefslave. But instead of using innxmit to transfer the
>articles, you use some sucking utility (see below).
>
>
>
>>I will be needing something like suck anyway, for the two ISPs where I
>>pull a couple of groups using a "mode:reader" type of command as opposed
>>to streaming. And for the other way (upstream from here) a "post" command.
>>
>>Ideas?
>>
>
>Regarding the sucking, FAQ 6.7 addresses this issue fairly well.
>The "pullnews" utility that comes with INN could be used to do
>your migration from the old server, but is not robust enough to
>see ongoing use like you'll need for your other groups. Also it
>doesn't have a facility for posting articles back up. So you'll
>want to look into suck or newsx as described in the FAQ.
>
Any ideas on how to get pullnews to use "authinfo user/pass" so I can
access my online server?
For future reference, do you know off-hand if suck and newsx provide
authentication?
What is the best way to empty all the groups on the new INN server that
have been streaming in?
I presume I should shut off streaming on the current upstream peer
(news61) first, so it won't keep pushing articles? Perhaps I should
remove it from incoming.conf (and innfeed) during the suck, then reenter
the online peer's hostname (news)?
Below is the plan of attack. The servers are:
"news" the exposed (online) RumorMill server on a PowerMac 7600
"news2" a slave RumorMill server on a PowerMac 8500
"news61" a slave RumorMill server on a PowerMac 6100 (testing RumorMill
beta)
"optima5" the new INN server
"<-->" indicates streaming
Present configuration:
Internet <--> news <--> news2 <--> news61 <--> optima5
Suck from ISPs -->/
Note: The two groups sucked from the ISPs do not stream out of news2
Proposed interim configuration (during suck and prolonged beta):
Internet <--> news <--> news2 <--> news61
\ <--> optima5 <--> Internet (nnrpd only via special
port in router)
Final configuration:
"news" the new exposed (online) INN server, previously "optima5"
"news76" the previously exposed "news" RumorMill server on a PowerMac 7600
Internet <--> news <--> news2 <--> news61
\ <--> news76
This should make the changeover easy, by simply renaming the INN server
config files, hostname, etc., making changes to the peers, and flopping
the DNS server entries.
Eventually the PowerMacs can be eliminated, after I add another INN
server as a backup slave.
TIA.
--
John
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Fri, 07 Oct 2005 16:33
Date: Fri, 07 Oct 2005 16:33
84 lines
4300 bytes
4300 bytes
In article <7oc1f.114772$qY1.32091@bgtnsc04-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>Jeffrey M. Vinocur wrote:
>
>>In article <gqj%e.346362$5N3.329060@bgtnsc05-news.ops.worldnet.att.net>,
>>John F. Morse <xanadu.bbs@invalid.net> wrote:
>>
>
>Any ideas on how to get pullnews to use "authinfo user/pass" so I can
>access my online server?
I don't know why this isn't in the manpage, but the example
pullnews configuration that's actually in the script itself shows
how to do so -- just put them on the server line:
data.pa.vix.com
news.software.nntp 0 0
comp.lang.c 0 0
news.uu.net username passwd
uunet.announce 0 0
uunet.help 0 0
>For future reference, do you know off-hand if suck and newsx provide
>authentication?
I'm sure they both do.
>What is the best way to empty all the groups on the new INN server that
>have been streaming in?
Say that again? To reset the server, you mean? You need to do
the following things (with the server off):
- wipe the article spool
- wipe the overview database
- delete history and create a new one fresh as per INSTALL
- reset the numbers in the active file
>I presume I should shut off streaming on the current upstream peer
>(news61) first, so it won't keep pushing articles? Perhaps I should
>remove it from incoming.conf (and innfeed) during the suck, then reenter
>the online peer's hostname (news)?
Well, actually, if new articles are going to be posted to news61,
then you're going to want them fed across, otherwise they might
appear in a group that's already been sucked and thus not make it
to your INN. Having them appear out of order can confuse
readers, but should be okay. (Your expiration times will be
based on article arrival time, but as long as it's all within a
short period I don't think that should matter.)
You decided to use xrefslave, right? That's the only way you get
seamless transition, so I think you must be intending to.
>Proposed interim configuration (during suck and prolonged beta):
>
>Internet <--> news <--> news2 <--> news61
> \ <--> optima5 <--> Internet (nnrpd only via special
>port in router)
I think this is no good -- while xrefslave is true, your server
can only have one source for articles. More precisely, it can
only have one source per newsgroup.
So if you're intending to be feeding (directly or via suck) any
articles from the Internet to INN, it could get sticky.
Although, if you only have one internet feed, and you won't be
feeding any articles into those groups from your other servers,
and you don't mind your server taking your ISP's article numbers
for those groups, I guess this could work.
You also can't have anyone post directly to INN while xrefslave
is on (if you wanted, you could use nnrpdposthost in inn.conf to
get around this issue, though).
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Fri, 07 Oct 2005 16:51
Date: Fri, 07 Oct 2005 16:51
103 lines
5115 bytes
5115 bytes
In article <4k31f.378909$5N3.296970@bgtnsc05-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>Once we get this working, maybe I should take the time to gather up all
>of my notes on dual-access privileges, and submit it for the FAQ or manual?
*shrug* It's actually not a very complex configuration -- it's
just that doing anything with readers.conf is confusing when
you're new to it.
Maybe we should start a repository of working readers.conf
examples, though.
> read: "brisbee,computers,petchat,raucouscaucus,soapbox"
> post: "brisbee,computers,petchat,raucouscaucus,soapbox"
FYI, when read: and post: are the same, you might a well just use
a newsgroups: line instead.
>The reason I modified your example was I didn't understand (still don't)
>the use of the items I will not be using, such as references to "xanadu"
>under the "special" access (or that whole stanza, for that matter).
>
>Since I won't be using <localhost> for access, I presume the "special"
>stanza would never be used. Or is it also providing power-user access
>for a username "xanadu" (a remote newsmaster perhaps)? I'll keep it just
>in case.
Well, there were three things going on there. One is that it's
nice to have full access from localhost for debugging purposes,
so that when you telnet in for manual testing, you don't have to
issue AUTHINFO commands every time. The second is that you may
one day run some utility on your server that should have reading
or posting access (like say, a monthly FAQ autoposter). And the
third was that, even if you decide to hide control.* from your
users, you as the admin probably want to be able to see it
yourself -- I was guessing from your From line that "xanadu" was
your personal username, but I guess perhaps it's not.
>The following readers.conf seems to test out perfectly from an
>authorized account, and from any annonymouse, and does correctly ask for
>authentication:
That one looked good for me. The suggestion above about avoiding
duplicate read:/post: lines still applies. And one more
suggestion below.
>Feel free to suggest ideas (if needed) to shorten the long parameter
>lines. If none, I would be limited to 8180 or 8191 characters? That's
>quite long.
There's nothing to do about this in your case.
>I believe this would be easier if I would choose to use hierarchies. But
>then the longer group names would show in any news client (or be
>abbreviated in some).
That's true. But the organization might be really nice for your
users, honestly -- somebody who's got an authenticated account is
apt to be confused by these two conceptually unrelated groups
being all jumbled together in alphabetical order.
And besides, it's not like people have to type these group names
by hand anymore. What actual problem would the longer names
cause?
>The existing five "Brisbee" groups should not be changed.
Okay. (If you really wanted to rename them, it would be possible
to do so and keep the old articles, although they would appear as
all fresh and unread to your clients, which is a little one-time
inconvenience.)
You could still put the new groups in some sort of hierarchy to
keep the separate from the Brisbee ones.
>In the case of control.cancel, I will probably keep it visible, at least
>for awhile. That might discourage any frequent wholesale canceling if
>those users know others are watching.
>Keeping it visible is the reason I had to use three "bang" control
>groups to hide them. Perhaps there is a method to allow access to
>control.cancel but then hide the others more easily (!control.*), if
>there is a particular parsing order?
Yeah, you should be able to do
newsgroups: "*,!junk,!control,!control.*,control.cancel"
to allow access to just control.cancel.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
Author: John F. Morse
Date: Sat, 08 Oct 2005 05:28
Date: Sat, 08 Oct 2005 05:28
222 lines
9072 bytes
9072 bytes
Jeffrey M. Vinocur wrote:
>In article <4k31f.378909$5N3.296970@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>
>>Once we get this working, maybe I should take the time to gather up all
>>of my notes on dual-access privileges, and submit it for the FAQ or manual?
>>
>>
>
>*shrug* It's actually not a very complex configuration -- it's
>just that doing anything with readers.conf is confusing when
>you're new to it.
>
>
Hi, Jeff.
It's not complex and not necessarily confusing. It's just there is not
quite enough information available to easily find what is needed. Once
it is found, then it is easier to find it again later -- usually. ;-)
Maybe there are too many "placeholders" for something a user must
provide, with no examples for a real-world configuration. I'd love to
see more #examples/explanations and #lines if necessary.
For example:
auth "localhost" {
hosts: "localhost, 127.0.0.1, stin"
default: "<localhost>"
On the last line, just what does "<localhost>" mean? Is it the literal
word "localhost" or something else (regarding the L.T. and G.T. marks)?
In the auth, is the word "localhost" just a name or label for the
programmer's ease of remembering, and nothing real, or is it a label
that the "<localhost>" refers to?
From readers.conf(8):
------------------------------------------------------------------------
A user identity, as established by an auth group, looks like an e-mail
address; in other words, it's in the form
"<username>@<domain>" (or sometimes just "<username>" if no
domain is specified.
An auth group definition looks like:
auth <name> {
hosts: <host-wildmat>
auth: <auth-program>
res: <res-program>
default: <defuser>
default-domain: <defdomain>
# ...possibly other settings
}
The <name> is used as a label for the group and is only for
documentation purposes. (If your syslog configuration records the
"news.debug" facility, the <name> will appear in the debugging output of
nnrpd. Examining that output can be very helpful in understanding why
your configuration doesn't do what you expect it to.)
------------------------------------------------------------------------
So, this tells me I could use any identifying word? They show the "<"
and ">" around the ID, and Russ' "INN 2.4 Documentation" doesn't.
Possibly this is confusion. ;-)
Just what does INN define the characters "<" and ">" as? Are they the
values I should provide, like "brisbee"? Do they need to match anywhere,
like a label and a target?
Another thing that confuses me is readers.conf scanning downward through
the file, then back upward until it finds a match.
It seems odd why it doesn't just use the first match it finds? Or why
doesn't it just start at the bottom, if the downward scan is apparently
not used? (Notice my use of the word "apparently" here.) ;-)
I cannot remember reading anything about the order in a horizontal line.
I "presume" left to right. (More below.)
>Maybe we should start a repository of working readers.conf
>examples, though.
>
>
That would be a good idea. Probably with a few real-world examples (even
using foo.net). I probably will have most of it figures out by trail and
many errors first, but the aid would help those following (stumbling?)
behind me. I'm leaving a deep rut.
>> read: "brisbee,computers,petchat,raucouscaucus,soapbox"
>> post: "brisbee,computers,petchat,raucouscaucus,soapbox"
>>
>>
>
>FYI, when read: and post: are the same, you might a well just use
>a newsgroups: line instead.
>
>
Great tip. Thanks. I used an example, but now I see these lines were NOT
the same (or not meant to be the same):
------------------------------------------------------------------------
access <name> {
users: <identity-wildmat>
read: <read-wildmat>
post: <post-wildmat>
}
------------------------------------------------------------------------
>Well, there were three things going on there. One is that it's
>nice to have full access from localhost for debugging purposes,
>so that when you telnet in for manual testing, you don't have to
>issue AUTHINFO commands every time. The second is that you may
>one day run some utility on your server that should have reading
>or posting access (like say, a monthly FAQ autoposter). And the
>third was that, even if you decide to hide control.* from your
>users, you as the admin probably want to be able to see it
>yourself -- I was guessing from your From line that "xanadu" was
>your personal username, but I guess perhaps it's not.
>
>
My error understanding "localhost" here, Jeff. I took it to mean at the
server's console (stdin), not via telnet or SSH. I see your point now,
and your explained uses are good to know.
Xanadu is part of an e-mail address on several mail servers, but I don't
use it as a Linux or INN user name. I will plug in my real username, if
it is secure from outsiders (i.e. access from the LAN only, or
authenticated by a password)?
>>The following readers.conf seems to test out perfectly from an
>>authorized account, and from any annonymouse, and does correctly ask for
>>authentication:
>>
>>
>
>That one looked good for me. The suggestion above about avoiding
>duplicate read:/post: lines still applies. And one more
>suggestion below.
>
>>I believe this would be easier if I would choose to use hierarchies. But
>>then the longer group names would show in any news client (or be
>>abbreviated in some).
>>
>>
>
>That's true. But the organization might be really nice for your
>users, honestly -- somebody who's got an authenticated account is
>apt to be confused by these two conceptually unrelated groups
>being all jumbled together in alphabetical order.
>
>And besides, it's not like people have to type these group names
>by hand anymore. What actual problem would the longer names
>cause?
>
>
Can you count the different ways a user can be confused?
Or even a budding INN newsmaster? ;-)
Let's just say they wouldn't approve of me changing the names on their
town after eight years or so.
I can hear, "You did it that way before, why can't you do it now? Didn't
you tell us INN was a better application?" ...
>You could still put the new groups in some sort of hierarchy to
>keep the separate from the Brisbee ones.
>
>
That is my plan, as well as the test group which was removed leaving
local.test.
>
>Yeah, you should be able to do
>
> newsgroups: "*,!junk,!control,!control.*,control.cancel"
>
>to allow access to just control.cancel.
>
I new there was a better way than my crowbar method. Thanks.
Theory question: So readers.conf reads the "!control.*" but does not act
on it before finishing the line, and taking the last command (i.e. it
reads left to right)? I changed both appearances, and it and it seems to
work this way.
Speaking of control.cancel, can this operation be shut off or ignored on
a server, so messages are not able to be canceled, say for archival or
historical purposes?
This archiving server would be accessible by me only, and not the users.
It also wouldn't need to stream out, but would accept all articles,
either rejecting c.cancel, or better, just ignoring their request.
--
John
Re: Authentication advice
Author: John F. Morse
Date: Sat, 08 Oct 2005 07:04
Date: Sat, 08 Oct 2005 07:04
208 lines
9004 bytes
9004 bytes
Jeffrey M. Vinocur wrote: >I don't know why this isn't in the manpage, but the example >pullnews configuration that's actually in the script itself shows >how to do so -- just put them on the server line: > > data.pa.vix.com > news.software.nntp 0 0 > comp.lang.c 0 0 > news.uu.net username passwd > uunet.announce 0 0 > uunet.help 0 0 > > Thanks for digging up this info. >>For future reference, do you know off-hand if suck and newsx provide >>authentication? >> >> > >I'm sure they both do. > > Again, thanks. >>What is the best way to empty all the groups on the new INN server that >>have been streaming in? >> >> > >Say that again? To reset the server, you mean? You need to do >the following things (with the server off): > >- wipe the article spool >- wipe the overview database >- delete history and create a new one fresh as per INSTALL >- reset the numbers in the active file > > Yes, to "empty" it so no messages were on it. Wouldn't this be necessary before I suck/sync (with xrefslave=true) everything from the existing online server? If there were still articles on the new server, wouldn't there be article numbering conflicts? Aren't there two other easier methods? One might be to cancel a range of messages. The other might be to rmgroup for every group, then newgroup them back. This sounds like maybe the easiest for only six groups. I would guess control.cancel can be left alone. Creating history is scary. I say this because this distro did not have the ~news/db directory as specified in http://www.eyrie.org/~eagle/software/inn/docs-2.4/install.html#S9 I wound up with none of the ".n" files mentioned. I don't know if the files mentioned (active, active.times, history, and newsgroups) were already in the directory, or if they were created when makedbz -i was invoked. These files are all in /var/lib/news and there are additionally a history.dir history.hash and history.index as well as the history. Plus .news.daily and now my encrypted password file that I stored there. >>I presume I should shut off streaming on the current upstream peer >>(news61) first, so it won't keep pushing articles? Perhaps I should >>remove it from incoming.conf (and innfeed) during the suck, then reenter >>the online peer's hostname (news)? >> >> > >Well, actually, if new articles are going to be posted to news61, >then you're going to want them fed across, otherwise they might >appear in a group that's already been sucked and thus not make it >to your INN. Having them appear out of order can confuse >readers, but should be okay. (Your expiration times will be >based on article arrival time, but as long as it's all within a >short period I don't think that should matter.) > >You decided to use xrefslave, right? That's the only way you get >seamless transition, so I think you must be intending to. > > News61 is not to be sucked. It doesn't have nearly as many articles as online news(76) has. It came online only a year ago, and I didn't pull the whole shebang from its peer, news2. Even news2 is short. I would need to suck from the online news(76) to have synchronized message numbers. Shutting down the streaming in from news61 is to keep anything from it interfering with the suck. The concern you have, and now I think I see, is any newly-posted messages on news(76) would probably be on news61 before the suck finished. I have news(76), news2 and news61 all three configured for a ten-minute timer for streaming. Perhaps I should change news(76)'s downstream timer to 120 minutes or so, to keep it from streaming downstream to news2 et al? It all depends on how long it would take INN and the suck. If it was less than an hour or so, I could disallow posting on news(76) until the suck was finished, and I had reconfigured INN and news(76) to talk directly. According th the daily INN report, I can do this between 0100-0300 without anyone knowing, or much later if I warn one early bird. The following is the current list of news (on the PowerMac 7600): brisbee 125 33744 y computers 27 3370 y control 1 3735 y local.test 1 9 y petchat 10 918 y raucouscaucus 6 174 y soapbox 1 3708 y This lists the maximum messages of course, and there are probably a few thousand canceled somewhere between the low- and high-water marks. Got a ball park guess how long this might take, over a 10/100 LAN? I could zero the big brisbee group on INN and only suck it to gauge a time. When I tried "pullnews -g brisbee" Thursday, I received all of the groups in the failure to authenticate message. Makes me wonder if it can suck from only one group with the -g option. Now that I know about the authentication, I'll try it again with a small group to see what happens. And, finally, what about "control" going into "control.cancel"? Will it go there, or will it go into INN's plain old control group? Would duplicate article number rejections be a problem? My guess is a control.cancel is acted upon, then the message is simply stored awaiting expiration (plus streamed out if required). I don't know if it is possible to remove the control.cancel group then newgroup it right back in. >>Proposed interim configuration (during suck and prolonged beta): >> >>Internet <--> news <--> news2 <--> news61 >> \ <--> optima5 <--> Internet (nnrpd only via special >>port in router) >> >> > >I think this is no good -- while xrefslave is true, your server >can only have one source for articles. More precisely, it can >only have one source per newsgroup. > > That only source is "news." >So if you're intending to be feeding (directly or via suck) any >articles from the Internet to INN, it could get sticky. >Although, if you only have one internet feed, and you won't be >feeding any articles into those groups from your other servers, >and you don't mind your server taking your ISP's article numbers >for those groups, I guess this could work. > > No ISP articles will ever be streamed, and none will be sucked until INN is in the final configuration. At that time, if I do suck from one or two ISPs, the article numbering won't matter. Everything there would start from scratch. Heh. The detail you must have overlooked is the "other" Internet is an nnrpd connection from a special port in the WAN-to-LAN (NAT) router, meaning for my use, and my beta testers only. This is not for any article streaming to or from other NNTP servers, nor sucking/POSTing. We can use it to read and post only with an NNTP client, or telnet if needed. It's a gate for testers to "play" and try and find problems before I switch over to the final configuration, while still providing a path for the slave servers to keep on gathering articles. News61 returns to the dead end of the PATH here, with the new INN server sliding down closer to the Internet, and having a "secret" nnrpd door for me. >You also can't have anyone post directly to INN while xrefslave >is on (if you wanted, you could use nnrpdposthost in inn.conf to >get around this issue, though). > I won't be posting, and I can temporarily close the special router port to keep out any beta testers that stay up all night. ;-) -- John
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Sun, 09 Oct 2005 01:55
Date: Sun, 09 Oct 2005 01:55
196 lines
9173 bytes
9173 bytes
In article <hOI1f.391338$5N3.11756@bgtnsc05-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>Jeffrey M. Vinocur wrote:
>
>>In article <4k31f.378909$5N3.296970@bgtnsc05-news.ops.worldnet.att.net>,
>>John F. Morse <xanadu.bbs@invalid.net> wrote:
>>
>>
>It's not complex and not necessarily confusing. It's just there is not
>quite enough information available to easily find what is needed. Once
>it is found, then it is easier to find it again later -- usually. ;-)
Right...and some of that is because the documentation is unclear,
and some because manpages aren't a great for all forms of
documentation, but I think a lot of is just that INN has a
complicated architecture and complicated documentation to go with
it. I don't think writing step-by-step guides for every possible
configuration anybody might want is a feasible way to improve it,
though (but see below).
Also, some of it is because the documentation hasn't been
overhauled lately. I did a pass over it several years ago trying
to clarify the worst of the unclear parts, but even at the time I
wasn't aiming for ideal.
BTW, if you (or anyone else) want to submit patches to any part
of the documentation, even if they aren't the parts that I
personally would have worked on first, we'd probably love to have
them.
>Maybe there are too many "placeholders" for something a user must
>provide, with no examples for a real-world configuration.
Okay, your observation that we sometimes use angle-brackets in
the actual syntax but sometimes use them as placeholders is a
really good one. That's definitely unclear and should be
clarified.
>I'd love to see more #examples/explanations and #lines if necessary.
I think more full-fledged working examples would be wonderful.
Right now we've got essentially a single well-commented example
for each file and that's it.
What do you think about putting this in the INN source tree (say
in contrib/samples/*) vs having it up on the web?
> default: "<localhost>"
>
>On the last line, just what does "<localhost>" mean? Is it the literal
>word "localhost" or something else (regarding the L.T. and G.T. marks)?
Ah. Good question. In readers.conf identity strings, we use the
angle brackets as a convention to create special values that
wouldn't ever accidentally conflict with usernames. So the
example you quoted assigns an identity of "<localhost>"
(including the angle brackets but not including the quotes). The
point being, if you just used "localhost" and somebody one day
created a user in your password file whose username happened to
be "localhost" then they'd conflict and cause some subtle bug.
In the newsfeeds file, we distinguish special feed names with
exclamation points (!) to keep them from conflicting with
anything that could ever appear in a Path: header as an actual
site name. But that convention is no good in readers.conf,
because the readers.conf usernames get used in wildmat patterns
like "*,!foo" and so some other punctuation is required.
>------------------------------------------------------------------------
>
>A user identity, as established by an auth group, looks like an e-mail
>address; in other words, it's in the form
> "<username>@<domain>" (or sometimes just "<username>" if no
>domain is specified.
>
> An auth group definition looks like:
>
> auth <name> {
> hosts: <host-wildmat>
> auth: <auth-program>
> res: <res-program>
> default: <defuser>
> default-domain: <defdomain>
> # ...possibly other settings
> }
>
>
> The <name> is used as a label for the group and is only for
>documentation purposes. (If your syslog configuration records the
>"news.debug" facility, the <name> will appear in the debugging output of
>nnrpd. Examining that output can be very helpful in understanding why
>your configuration doesn't do what you expect it to.)
>
>------------------------------------------------------------------------
>
>So, this tells me I could use any identifying word? They show the "<"
>and ">" around the ID, and Russ' "INN 2.4 Documentation" doesn't.
>Possibly this is confusion. ;-)
I don't understand what difference you see between the manpage
and the online documentation, honestly.
In the example above, the angle brackets are all placeholders.
Keep in mind that the initial/example configuration files
installed by INN are all functional. So if you don't see any
angle brackets in them, they definitely aren't required.
>Just what does INN define the characters "<" and ">" as?
They aren't special characters from INN's point of view per se.
Some places in the documentation they are used as place holders,
and some places we use them, by convention, as a way to divide up
a namespace into parts that can't possibly conflict.
>Are they the values I should provide, like "brisbee"? Do they
>need to match anywhere, like a label and a target?
The documentation should tell you the answer to this in a
specific case. Some things need to match (like feed names in the
newsfeeds file and in innfeed.conf), and some don't, and there's
no way to know except reading the documentation.
>Another thing that confuses me is readers.conf scanning downward through
>the file, then back upward until it finds a match.
>
>It seems odd why it doesn't just use the first match it finds? Or why
>doesn't it just start at the bottom, if the downward scan is apparently
>not used? (Notice my use of the word "apparently" here.) ;-)
I'm not sure what exactly you're confused about here.
Conceptually, the options are first match or last match; in this
case last match makes sense from a usability point of view (as in
many other parts of INN).
The actual implementation details shouldn't concern you at all,
if that's what you're thinking about. There are several ways to
implement a find-the-last-match feature, but regardless the
user-visible semantics are the same. (It is, of course,
impossible to "just start at the bottom" for a text-based config
file like that until it's been read once in the usual way and
parsed into some internal data structure.)
>I cannot remember reading anything about the order in a horizontal line.
>I "presume" left to right. (More below.)
It's implied by the use of "wildmat" throughout the readers.conf
documentation. You should read the uwildmat(3) manpage.
>Xanadu is part of an e-mail address on several mail servers, but I don't
>use it as a Linux or INN user name. I will plug in my real username, if
>it is secure from outsiders (i.e. access from the LAN only, or
>authenticated by a password)?
There's no magic here...
The users: line in a readers.conf access block is matched against
the identity assigned by the auth blocks. In the file I posted,
the only way to be assigned an identity of "xanadu" is for that
call to ckpasswd to validate "xanadu" as a user in the password
file you created.
>Theory question: So readers.conf reads the "!control.*" but does not act
>on it before finishing the line, and taking the last command (i.e. it
>reads left to right)? I changed both appearances, and it and it seems to
>work this way.
Yes, see uwildmat(3) as mentioned above.
>Speaking of control.cancel, can this operation be shut off or ignored on
>a server, so messages are not able to be canceled, say for archival or
>historical purposes?
You're looking for the -C flag described in innd(8). (Since you
don't run innd directly, you have to supply its flags via the
"innflags" line in inn.conf.)
You also could use the `archive` utility supplied with INN (see
the corresponding manpage) to write an archival copy out to disk;
cancels are never applied to an archive created that way.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Sun, 09 Oct 2005 02:23
Date: Sun, 09 Oct 2005 02:23
153 lines
6805 bytes
6805 bytes
In article <jcK1f.120122$qY1.67850@bgtnsc04-news.ops.worldnet.att.net>, John F. Morse <xanadu.bbs@invalid.net> wrote: > >Jeffrey M. Vinocur wrote: > >>Say that again? To reset the server, you mean? You need to do >>the following things (with the server off): >> >>- wipe the article spool >>- wipe the overview database >>- delete history and create a new one fresh as per INSTALL >>- reset the numbers in the active file > > >Yes, to "empty" it so no messages were on it. Wouldn't this be necessary >before I suck/sync (with xrefslave=true) everything from the existing >online server? Yes. >Aren't there two other easier methods? Not really... >One might be to cancel a range of messages. Oof, you think that's easier? Strikes me as painful. Also, it doesn't clear out history (INN will refuse articles with the Message-ID of a recently canceled article), doesn't clear out overview until the next overnight news.daily run, and doesn't reset the article numbers in the active file. >The other might be to rmgroup for every group, then newgroup them back. >This sounds like maybe the easiest for only six groups. Well, that will reset the active file, but it actually doesn't delete the physical articles if stored in tradspool (this bites people occasionally). Also, it doesn't clear out history, so those articles will be refused if offered again in the near future. >I would guess control.cancel can be left alone. Mmmm might get you in trouble, in theory. The approach to clearing out the server I described above will also fix up control.cancel, though, so you shouldn't have to worry about it. >Creating history is scary. I say this because this distro did not have >the ~news/db directory as specified in >http://www.eyrie.org/~eagle/software/inn/docs-2.4/install.html#S9 Right, the articles will appear in whatever "pathdb" is set to in inn.conf -- as we learned earlier, your distribution has them in all sorts of crazy places. I'll post (in a separate post in a minute) the compiled results of that grep output you provided so you can tell how your distribution compares. >I wound up with none of tha ".n" files mentioned. I don't know if the >files mentioned (active, active.times, history, and newsgroups) were >already in the directory, or if they were created when makedbz -i was >invoked. Well, you could check the timestamps, but unless you used the -f flag, makedbz definitely should have created files with .n. in the names. >Shutting down the streaming in from news61 is to keep anything from it >interfering with the suck. Well, you certainly can't be feeding directly from one server and sucking from another, with xrefslave on, if they don't have synchronized article numbers. >The concern you have, and now I think I see, is any newly-posted >messages on news(76) would probably be on news61 before the suck >finished. That's a concern, if you left the feed from news61 one. However, I'm more worried that you'll miss messages entirely, from people who post while the suck is going but after it has already completed some of the groups. >It all depends on how long it would take INN and the suck. If it was >less than an hour or so, I could disallow posting on news(76) until the >suck was finished, and I had reconfigured INN and news(76) to talk >directly. That would be fine. Also, if you set up news(76) to feed directly after the INN has been reset and xrefslave enabled, but before you start sucking, it should actually work -- some newly posted articles might appear to INN before the sucked articles, but they should all still get the right numbers. As for how long it will take, I can't predict that, but you could actually do a whole test run, time the sucking, and then reset INN again and do it for real. >This lists the maximum messages of course, and there are probably a few >thousand canceled somewhere between the low- and high-water marks. Got a >ball park guess how long this might take, over a 10/100 LAN? About 40,000 messages, some of which you tell me are binaries of unknown size, being sucked from server software I've never heard of running on hardware from the last millenium...how could I possibly guess. Clearly it will take at least as long as the total size of the spool divided by the network throughput you can get, but beyond that, who knows. >When I tried "pullnews -g brisbee" Thursday, I received all of the >groups in the failure to authenticate message. Makes me wonder if it can >suck from only one group with the -g option. I believe that options works. >And, finally, what about "control" going into "control.cancel"? Will it >go there, or will it go into INN's plain old control group? Would >duplicate article number rejections be a problem? My guess is a >control.cancel is acted upon, then the message is simply stored awaiting >expiration (plus streamed out if required). I don't understand parts of this paragraph well. Rephrase? >I don't know if it is possible to remove the control.cancel group then >newgroup it right back in. No, INN won't function with its special groups. >No ISP articles will ever be streamed, and none will be sucked until INN >is in the final configuration. At that time, if I do suck from one or >two ISPs, the article numbering won't matter. Everything there would >start from scratch. Ah, okay. That "<---> Internet" in the proposed configuration was misleading me. -- Jeffrey M. Vinocur jeff@litech.org
Re: Authentication advice
Author: John F. Morse
Date: Sun, 09 Oct 2005 05:16
Date: Sun, 09 Oct 2005 05:16
222 lines
9955 bytes
9955 bytes
Jeffrey M. Vinocur wrote:
>In article <jcK1f.120122$qY1.67850@bgtnsc04-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>>And, finally, what about "control" going into "control.cancel"? Will it
>>go there, or will it go into INN's plain old control group? Would
>>duplicate article number rejections be a problem? My guess is a
>>control.cancel is acted upon, then the message is simply stored awaiting
>>expiration (plus streamed out if required).
>>
>>
>
>I don't understand parts of this paragraph well. Rephrase?
>
The RumorMill servers only have a "control" group. This is where the
cancels go.
INN has several control groups, and cancels go to "control.cancel" while
oddball/unspecified control messages go into INN's "control" group.
Since the groups are named differently ("control" vs. "control.cancel")
where would the RumorMill control messages wind up on INN?
As a side note, would INN examine every one of these and build a history
from them? (Reasoning: Some are ages old and the messages long gone. The
high-water mark is 3735 on the RumorMill server.)
RumorMill provides a server-wide default expiration period in days,
which can be overridden on a per group basis, or totally shut off. Does
INN provide expiration by individual groups? Maybe I answered this....
Snooping around I find expire.ctl might b the answer. I have
groupbaseexpiry set true already (as installed), so all I need is to
figure out how to configure this file.
Something like the third line of the "Format:" with the "*" a real group
name, then the flag ("A" here, but not sure if that would be my choice,
maybe "X"?), 1, then my maximum days or "never" and the purge (again
"never" is valid).
I don't understand why the default "*:A:1:10:never" would have a flush
"never" if the group had a 10 day expiry? What is the difference between
"days to keep an article" and "flush"?
I wonder, could the wildmat be written to always keep all of the
existing five ("newspaper") groups, but set some expiry time for the new
"local" groups? Well, looking a little farther down the man page shows
this in the fourth example, modified for me:
local.*:A:90:90:90
brisbee:A:never:never:never
computers:A:never:never:never
petchat:A:never:never:never
raucouscaucus:A:never:never:never
soapbox:A:never:never:never
Or possibly ?:
local.*:A:90:90:90
!local.*:A:never:never:never
Finally, the artcutoff I believe is similar to RumorMill's "Allow Old
Articles" and I am curious if it is somehow connected to the expire.ctl
routine?
Just for your info, in case you are curious, here is a quick telnet
session with RumorMill, listing the commands, and listing the
preferences. Some of it looks very similar to some of the INN
configurations. Like you with INN, I can run this in the dark -- but it
took me five years. ;-)
Enjoy.
--
John
200 RumorMill (1.3.3) Macintosh NNTP Server on 76.xanadu-bbs.net ready
(login required)
xpass ********
281 Password accepted
help
100 Accepted commands are:
AUTHINFO USER <username> | PASS <password>
HELP
IHAVE messageID
NOOP
QUIT
VERSION
XPASS <password>
XADDLIST <group names>
XDELETEARTICLE <message ID> | [range]
XDELOLDARTICLEFILE
XAUTHINFO ADD <username> READONLY | POSTOK <read user-group index>
<post user-group index> <password>
XAUTHINFO DELETE <username>
XAUTHINFO LIST
XAUTHINFO MODIFY <username> READONLY | POSTOK <read user-group index>
<post user-group index> <new password>
XCOMPACTDB <db flags>
XCTL EXECUTE <message-id>
XCTL FORGET <message-id>
XCTL LIST
XEXPIREDB
XGROUP GET DESCRIPTION <group>
XGROUP SET DESCRIPTION <group> <description>
XGROUP GET EXPIRY <group>
XGROUP SET EXPIRY <group> <period in days>
XGROUP GET EXPLODER <group>
XGROUP SET EXPLODER <group> <EMail address(es) to mail postings>
XGROUP GET MODERATOR <group>
XGROUP SET MODERATOR <group> <Group submission EMail address>
XKILL connection_index | -1
XMAX
XPREF LIST
XPREF GET <preference name>
XPREF SET
XPREF PREFGRP
XPULL
XRMGROUP <group>
XSTATS
XLOG
XUSERGROUP ADD <user-group index> EXCLUDE | PERMIT <name><cr><group
list><cr>.<cr>
XUSERGROUP DELETE <user-group index>
XUSERGROUP LIST
XMAKEFWD <remote host name>
QUITNOW
newsmaster@"MY".net [munged - see the first 200 reply line following my
sig for a clue]
..
xpref list
289 Preferences follow
Admin OKs Group Deletes longint 1 0 2
Admin OKs New Groups longint 1 0 2
Allow Old Articles longint 0 0 1
Article Expiration Period longint 365 1 3650
Article File Window longint 15 1 365
Auto delete article files longint 0 0 2
Automatic Expiration longint 0 0 1
Background Quantum longint 4 1 50
CHECK Threshold longint 1200 1 1000000000
Compact Period By Group Index longint 3 1 365
Compact Period Canceled longint 5 1 365
Compact Period Deferred longint 2 1 365
Compact Period Group longint 5 1 365
Compact Period MessageID longint 5 1 365
Compact Period User longint 11 1 365
Connection retry count longint 0 0 10
Database synch count longint 30 1 500
Database synch interval longint 30 1 600
Date Bounds longint 2 1 3660
Detailed Logging longint 1 0 1
Disk space threshold longint 1000 2 100000000
EMail Add Reply-to longint 0 0 1
EMail Control Msgs longint 1 0 1
EMail Interval longint 15 1 1439
EMail Map map
EMail Server Group Changes longint 1 0 1
EMail Statistics longint 1 0 1
Enable group cache longint 1 0 1
Enable streaming receive longint 1 0 1
Enable streaming send longint 1 0 1
Enable virtual groups longint 0 0 1
Flood Interval longint 5 1 1439
Foreground Quantum longint 6 1 50
Garbage Collect Quantum longint 3 1 50
Garbage Collect Time longint 200 0 235900
Help note Str255 newsmaster@"MY".net
Hide control group longint 0 0 1
Host path name Str255 news.xanadu-bbs.net
Inject Interval longint 5 1 1439
Limit IHAVE longint 1 0 1
Log File Name Str255 RumorMill Log 76
Log Rejected Msgs longint 1 0 1
Log unknown groups longint 0 0 1
Max Article File Size longint 40 1 2000
Max Article Gap longint 4000 1 100000
Max Article Size longint 350000 2000 10000000
Max Clients longint 50 1 100
Max Expiration Delta longint 180 1 3650
Max Feeds longint 2 0 20
Max Idle Period longint 15 0 240
Max Logfile Size longint 128 10 20000
Max Msgs Per Connection longint 10000 1 100000
Max Newsgroups Per Msg longint 50 1 40000
Max Open Article Files longint 20 5 1000
NAT host name Str255 xanadu-bbs.net
NNSP Server port longint 433 0 100000
No NEXT longint 1 0 1
Only propagate local postings longint 0 0 1host
PAT permitted longint 1 0 1
POP Interval longint 15 1 1439
POP account Str255
POP host Str255
POP password Str255
Pull Interval longint 5 1 1439
Read Only longint 0 0 1
Remote Servers rmsv
Require Login longint 1 0 2
SMTP host Str255 smtp."ISP1".net
SPAM if chrh
SPAM if not chrh
Server mode longint 1 0 1
Server port longint 119 1 100000
Site Address Restrictions restrictions
Site Password Str255 ********
Status window update rate longint 5 1 10000
Sys Admin EMail Addr Str255 newsmaster@"MY".net
SysLog IP Addr Str255
SysLog Port longint 514 1 32000
SysLog Priority longint -1 -1 7
Text PWD longint 0 0 1
Use alternate AUTHINFO codes longint 0 0 1
User EMail Header Str255 X-From: Xanadu.BBS@"ISP2".net
User Header Str255
Virtual Group Filter chrh
Virtual group threshold longint 2 1 255
Re: Authentication advice
Author: Jeffrey M. Vinocur
Date: Sun, 09 Oct 2005 13:03
Date: Sun, 09 Oct 2005 13:03
103 lines
5208 bytes
5208 bytes
In article <WI12f.123299$qY1.69753@bgtnsc04-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>The RumorMill servers only have a "control" group. This is where the
>cancels go.
>
>INN has several control groups, and cancels go to "control.cancel" while
>oddball/unspecified control messages go into INN's "control" group.
>
>Since the groups are named differently ("control" vs. "control.cancel")
>where would the RumorMill control messages wind up on INN?
Oof, I don't know. My best guess is that if you suck them with
xrefslave on, they'll end up in control. But I'm not sure that's
a good idea. Do you need to migrate the old control messages?
>As a side note, would INN examine every one of these and build a history
>from them? (Reasoning: Some are ages old and the messages long gone. The
>high-water mark is 3735 on the RumorMill server.)
Yes, if you supply INN with an old cancel message, it will record
it in the history...but then expire that entry automatically in
some number of days (whatever /remember/ is set to in expire.ctl.
>RumorMill provides a server-wide default expiration period in days,
>which can be overridden on a per group basis, or totally shut off.
Well, then you could expire the old cancel messages before
sucking, if you want to suck the newer ones.
>Does INN provide expiration by individual groups? [...]
>Snooping around I find expire.ctl might b the answer.
Yes.
>then the flag ("A" here, but not sure if that would be my choice,
>maybe "X"?),
Well, you can't have X alone, as the documentation says.
You only need to consider adding X if your users crosspost to
groups that won't all have the same expiration time.
>I don't understand why the default "*:A:1:10:never" would have a flush
>"never" if the group had a 10 day expiry? What is the difference between
>"days to keep an article" and "flush"?
The middle field, <default>, will be used as the expiration period for
most articles. The other two fields, <min> and <max>, only come into
play if the article requests a particular expiration date with an
Expires header. Articles with an Expires header will be expired at the
date given in that header, subject to the constraints that they will be
retained at least <min> days and no longer than <max> days.
>I wonder, could the wildmat be written to always keep all of the
>existing five ("newspaper") groups, but set some expiry time for the new
>"local" groups? Well, looking a little farther down the man page shows
>this in the fourth example, modified for me:
>
>local.*:A:90:90:90
>brisbee:A:never:never:never
>computers:A:never:never:never
>petchat:A:never:never:never
>raucouscaucus:A:never:never:never
>soapbox:A:never:never:never
>
>Or possibly ?:
>
>local.*:A:90:90:90
>!local.*:A:never:never:never
Either of these is a reasonable approach. However, you need to
be sure to address how junk and control groups should be handled
(in your second example there, they would be kept forever). And:
Articles that do not match any expiration rule will not be expired, but
this is considered an error and will result in a warning. There should
always be a default line (a line with a <pattern> of "*" and <flag> of
"A", or a line with a <classnum> of "*"), which can explicitly state
that articles should never expire by default if that's the desired con-
figuration. The default line should generally be the first line of the
file (except for "/remember/") so that other expiration rules can over-
ride it.
>Finally, the artcutoff I believe is similar to RumorMill's "Allow Old
>Articles" and I am curious if it is somehow connected to the expire.ctl
>routine?
Not really...artcutoff applies to articles when they first are
offered to the server, and expire.ctl counts the amount of time
they have existed on the server.
--
Jeffrey M. Vinocur
jeff@litech.org
Page 1 of 2 • 56 total messages
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