Thread View: news.software.nntp
7 messages
7 total messages
Started by Steve
Wed, 06 Sep 2006 10:38
readers.conf - Read groups from file
Author: Steve
Date: Wed, 06 Sep 2006 10:38
Date: Wed, 06 Sep 2006 10:38
10 lines
1329 bytes
1329 bytes
Hi all, Within INN's readers.conf, is there a way to read news/read/post settings from a file? My reason for asking is that complex lists of what users can and cannot read/post tends to make readers.conf become difficult to read, with lots of repetition between access groups. Postfix has a nice solution for this where (for example) mydestination can contain a mix of hardcoded entries and also file references. mydestination = localhost.localdomain, localhost, /etc/postfix/mydestination
Re: readers.conf - Read groups from file
Author: Jeffrey M. Vinocur
Date: Wed, 06 Sep 2006 10:46
Date: Wed, 06 Sep 2006 10:46
16 lines
1631 bytes
1631 bytes
In article <edm8ea$4pj$1@bananasplit.info>, Steve <steve@goofer.co.uk> wrote: > >Within INN's readers.conf, is there a way to read news/read/post >settings from a file? My reason for asking is that complex lists of >what users can and cannot read/post tends to make readers.conf become >difficult to read, with lots of repetition between access groups. Well, no. If you're truly doing complex stuff, you might be better served by using perl_access: / python_access: and having the full power of a programming language logic to do whatever you like. -- Jeffrey M. Vinocur jeff@litech.org
Re: readers.conf - Read groups from file
Author: John F. Morse
Date: Wed, 06 Sep 2006 12:41
Date: Wed, 06 Sep 2006 12:41
55 lines
3483 bytes
3483 bytes
Jeffrey M. Vinocur wrote: >In article <edm8ea$4pj$1@bananasplit.info>, Steve <steve@goofer.co.uk> wrote: > > >>Within INN's readers.conf, is there a way to read news/read/post >>settings from a file? My reason for asking is that complex lists of >>what users can and cannot read/post tends to make readers.conf become >>difficult to read, with lots of repetition between access groups. >> >> > >Well, no. If you're truly doing complex stuff, you might be >better served by using perl_access: / python_access: and having >the full power of a programming language logic to do whatever you >like. > Sounds like Steve has similar needs (desires?) as mine. For years I was the sysop of a large BBS. The software was Hermes, and it ran on a Mac. I don't know anything about BBS software for the "IBM" compatible platform, but there were several packages available. IIRC, the Mac platform was limited to Hermes, Telefinder, and another whose name I cannot recall. Hermes had quite a large selection of access privilege settings. Besides the usual FTP (file download areas), the textfiles area, bulletins, chat room permission, etc., the password-authorized username could be given all kinds of "forum" access privileges, or even various levels of sysop powers. Users calls per day and time per call or per day could me regulated. The "forums" are the closest idea to the netnews architecture. Hermes allowed ten forums, with an unlimited number of sub-forums. Think Big Eight, with lots of newsgroups under the main hierarchies. Users could be restricted to certain forums, and even restricted within a forum as to what they could do, such as read only, or read and post. Deletion was also a setting that could be controlled. It would be great to have such capabilities to regulate who gets where in INN. If I had the smarts to program such power, I sure would do so. Maybe someone having the necessary skills would volunteer? I don't know if perl/python would be "strong" enough though. I understand it to be powerful for text manipulation, which reminds me of COBOL. <yuck> Wouldn't something like C be more-fitting for such a task? Just thinking out "loud." ;-) -- John
Re: readers.conf - Read groups from file
Author: Steve
Date: Thu, 07 Sep 2006 10:27
Date: Thu, 07 Sep 2006 10:27
9 lines
1271 bytes
1271 bytes
On Wed, 6 Sep 2006 10:46:18 +0000 (UTC), Jeffrey M. Vinocur wrote in Message-Id: <edm8tq$hc9$1@puck.litech.org>: > Well, no. If you're truly doing complex stuff, you might be > better served by using perl_access: / python_access: and having > the full power of a programming language logic to do whatever you > like. Thanks Jeffrey, I hadn't considered this approach.
Re: readers.conf - Read groups from file
Author: Jeffrey M. Vinocur
Date: Fri, 08 Sep 2006 16:08
Date: Fri, 08 Sep 2006 16:08
46 lines
3047 bytes
3047 bytes
In article <1mzLg.62495$5i3.36179@bgtnsc04-news.ops.worldnet.att.net>, John F. Morse <xanadu.bbs@invalid.net> wrote: > >Users could be restricted to certain forums, and even restricted within >a forum as to what they could do, such as read only, or read and post. >Deletion was also a setting that could be controlled. > >It would be great to have such capabilities to regulate who gets where >in INN. If I had the smarts to program such power, I sure would do so. This would be straightforward with either of the perl hooks and python hooks provided via readers.conf, except for the "deletion" issue, which isn't one that comes up for us very often. (And can certainly be managed via a perl filter and nnrpdauthsender if desired.) I think every administrator looking for this sort of thing will have subtly different needs. So while you're looking for a config file into which you could encode these complex needs, it turns out that the programming hooks are carefully designed for this sort of thing. So I think that once you have a clear, formal specification for your desired behavior, getting the actual functions written is not particularly harder than learning some strange config file syntax and trying to write them that way. >I don't know if perl/python would be "strong" enough though. I >understand it to be powerful for text manipulation, which reminds me of >COBOL. <yuck> I think you're a little out of touch with scripting languages these days. They're more than powerful for almost anything except sheer computational/mathematical tasks, and have excellent builtin/library support for the sort of operations you'd need (like looking up usernames in a database, filtering lists of groups based on certain criteria, etc). >Wouldn't something like C be more-fitting for such a task? Nope. Complete unsuited for this task. -- Jeffrey M. Vinocur jeff@litech.org
Re: readers.conf - Read groups from file
Author: John F. Morse
Date: Fri, 08 Sep 2006 17:57
Date: Fri, 08 Sep 2006 17:57
203 lines
8475 bytes
8475 bytes
Jeffrey M. Vinocur wrote: >>I don't know if perl/python would be "strong" enough though. I >>understand it to be powerful for text manipulation, which reminds me of >>COBOL. <yuck> >> >> > >I think you're a little out of touch with scripting languages >these days. They're more than powerful for almost anything >except sheer computational/mathematical tasks, and have excellent >builtin/library support for the sort of operations you'd need >(like looking up usernames in a database, filtering lists of >groups based on certain criteria, etc). > > > >>Wouldn't something like C be more-fitting for such a task? >> >> > >Nope. Complete unsuited for this task. > You are absolutely correct there, Jeff. My wife comments the same about my wardrobe. ;-) Actually, I've had little time to learn hardly anything about Perl, Python, and even scripting much in BASH. I do need to sit down and do a lot of reading, and trying out various things. For one, I have never been able to get Debian to "take" a BASH config (.bash_profile) to add the path for the news user. I always have to manually enter "PATH=$PATH:/usr/lib/news/bin" whenever I ssh into one of the INN hosts, using either "ssh -l news" or after accessing the client, then switching to the news user by using "su news." It is annoying, knowing it is probably some simple thing I'm overlooking. As for the INN server, it is now up and working fine, with the various readers.conf access users privileges, and with newsfeeds configured to eliminate sending unwanted groups to the two peers. Next will be tuning Cleanfeed, then trying again to understand Suck. Maybe with only around 125 groups to suck, I could just use pullnews to do the work? What is the recommended maximum workload for pullnews? Right now, RumorMill (news76) on the Mac is doing the pulling, then streaming the articles into news7, the newest online INN server. Here's what has happened so far today. It appears like a lot of articles, but my ISP's NNTP provider had trouble Wednesday and Thursday, and was not providing anything (see their status report at http://usenetserver.com ). The hourly totals are usually around 100-200, so I think they were catching up this morning from 0500 until 1000. john@news7:/var/log/news/OLD$ su news Password: sh-2.05b$ PATH=$PATH:/usr/lib/news/bin sh-2.05b$ scanlogs norotate Daily Usenet report from Sep 8 00:00:03 to Sep 8 12:32:42 Log entries by program: Program name Lines %Lines Size %Size inn 24261 96.1% 2.0 MB 95.3% nnrpd 546 2.2% 51.7 KB 2.4% innd 296 1.2% 34.3 KB 1.6% innfeed 152 0.6% 13.9 KB 0.7% TOTAL: 4 25255 100.0% 2.1 MB 100.0% nnrpd timer: Code region Time Pct Invoked Min(ms) Avg(ms) Max(ms) idle 01:50:43.511 96.8% 768 16.750 8650.405 188835.000 newnews 00:00:00.000 0.0% 0 0.000 0.000 0.000 nntpwrite 00:03:29.735 3.1% 320490 0.000 0.654 1.109 readart 00:00:00.216 0.0% 15 0.000 14.400 23.500 TOTAL: 01:54:25 01:54:13.462 99.8% - - - - Control commands to INND: Command Number paused 2 reload 1 TOTAL: 2 3 Incoming Feeds (INN): Server Connects Offered Taken Refused Reject %Accpt Elapsed news76.my.net 36 24261 24212 0 49 99% 00:17:53 localhost 14 0 0 0 0 0% 00:00:00 TOTAL: 2 50 24261 24212 0 49 99% 00:17:53 Incoming Volume (INN): Server AcceptVol DupVol TotalVol %Acc Vol/Art Elapsed news76.my.net 57.6 MB 0.0 KB 57.6 MB 100% 2.4 KB 00:17:53 localhost 0.0 KB 0.0 KB 0.0 KB 0% 0 00:00:00 TOTAL: 2 57.6 MB 0.0 KB 57.6 MB 100% 2.4 KB 00:17:53 Incoming articles: Date Articles %Arts Art/sec Size %Size KB/sec Sep 8 00:00:03 - 00:59:59 171 0.7% 0.05 1.9 MB 3.3% 0.53 Sep 8 01:00:00 - 01:59:59 106 0.4% 0.03 438.1 KB 0.7% 0.12 Sep 8 02:00:00 - 02:59:59 204 0.8% 0.06 1.8 MB 3.1% 0.51 Sep 8 03:00:00 - 03:59:59 146 0.6% 0.04 754.0 KB 1.3% 0.21 Sep 8 04:00:00 - 04:59:59 115 0.5% 0.03 325.7 KB 0.6% 0.09 Sep 8 05:00:00 - 05:59:59 1615 6.7% 0.45 3.5 MB 6.1% 1.00 Sep 8 06:00:00 - 06:59:59 5452 22.5% 1.51 11.6 MB 20.2% 3.31 Sep 8 07:00:00 - 07:59:59 4576 18.9% 1.27 9.8 MB 17.0% 2.78 Sep 8 08:00:00 - 08:59:59 5636 23.3% 1.57 12.1 MB 21.0% 3.43 Sep 8 09:00:00 - 09:59:59 5402 22.3% 1.50 13.2 MB 22.9% 3.75 Sep 8 10:00:00 - 10:59:59 365 1.5% 0.10 1000.3 KB 1.7% 0.28 Sep 8 11:00:00 - 11:59:59 287 1.2% 0.08 829.0 KB 1.4% 0.23 Sep 8 12:00:00 - 12:32:42 137 0.6% 0.07 485.0 KB 0.8% 0.25 TOTAL: 12:32:39 24212 100.0% 0.54 57.6 MB 100.0% 1.31 Sites sending bad articles: Server Total Group Dist Duplic Unapp TooOld Site Line Other news76.my.net 49 0 0 0 2 0 0 0 47 TOTAL: 1 49 0 0 0 2 0 0 0 47 Supposedly-moderated groups with unmoderated postings [Top 20]: Groups Count christnet.christianlife 1 christnet.theology 1 TOTAL: 2 2 INND perl filter [Top 20]: Reason Count Binary in non-binary group 46 Scoring filter (9) 1 TOTAL: 2 47 NNRP readership statistics: <snip> Also note that user news has a sh (sh-2.05b$) prompt instead of BASH. I wonder if that is my problem? :-[ Again, thanks for all of your help -- and patience. -- John
Re: readers.conf - Read groups from file
Author: 123
Date: Sat, 09 Sep 2006 21:57
Date: Sat, 09 Sep 2006 21:57
19 lines
1883 bytes
1883 bytes
Jeffrey M. Vinocur wrote: > In article <edm8ea$4pj$1@bananasplit.info>, Steve <steve@goofer.co.uk> wrote: >> Within INN's readers.conf, is there a way to read news/read/post >> settings from a file? My reason for asking is that complex lists of >> what users can and cannot read/post tends to make readers.conf become >> difficult to read, with lots of repetition between access groups. > > Well, no. If you're truly doing complex stuff, you might be > better served by using perl_access: / python_access: and having > the full power of a programming language logic to do whatever you > like. I've found a modified version of INN here: http://hack.org/mc/hacks/index.html "... hacked the INN News server to support Access Control Lists for newsgroups on a per user level ..."
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