🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Benedict White Tue, 13 Jan 2004 11:33
Reader.conf problem
#67666
Author: Benedict White
Date: Tue, 13 Jan 2004 11:33
76 lines
2392 bytes
Hi.

I am trying to get my head around reader.conf.

What I want is to set some hosts to have read only access and others to
have full access.

So, here is my reader.conf:


auth "read-only" {
    hosts: "*"
    default: "<localhost>@law4free.org.uk"
}

auth "localhost" {
    hosts: "localhost, 127.0.0.1, stdin, 192.168.244.0/24"
    default: "<localhost>"
}

access "localhost" {
    users: "<localhost>"
    newsgroups: "*"
    access: RPA
}


access "read-only" {
    users: "<read>@example.com"
#    read: "*"
    newsgroups: "arbitration.*"
    access: R
}


#END:




>From the local group that is Ok and I can see everything. From elswhere
where they are supposed to get read only access you get:

$ telnet news.law4free.org.uk 119
Trying 217.207.23.23...
Connected to news.law4free.org.uk.
Escape character is '^]'.
200 linux.local InterNetNews NNRP server INN 2.4.0 ready (posting ok).
mode reader
200 linux.local InterNetNews NNRP server INN 2.4.0 ready (posting ok).
list
215 Newsgroups in form "group high low flags".
..
list active
215 Newsgroups in form "group high low flags".
..
list newsgroups
215 Descriptions in form "group description".
..
list subscriptions
215 Subscriptions in form "group".
..
quit
205 .
Connection closed by foreign host.
$

Any thoughts about what I am doing wrong?

--
Benedict White
ben@cse-ltd.co.uk

DBase Charter Member

Re: Reader.conf problem
#67667
Author: Jeffrey M. Vinocur
Date: Tue, 13 Jan 2004 11:37
42 lines
2209 bytes
In article <4003D7A2.6F65B0B9@NOmyrealboxSPAM.com>,
Benedict White  <benedict@NOmyrealboxSPAM.com> wrote:
>
>I am trying to get my head around reader.conf.

(It's readers.conf, by the way.)


>auth "read-only" {
>    hosts: "*"
>    default: "<localhost>@law4free.org.uk"
>}
>
>access "read-only" {
>    users: "<read>@example.com"
>#    read: "*"
>    newsgroups: "arbitration.*"
>    access: R
>}

Well, there's your problem.  You're calling users who connect
from the outside world "<localhost>@law4free.org.uk" but never
giving that identity any matching access group.  The above access
group certainly doesn't apply, since it only matches users with
identity "<read>@example.com".

And by the way, instead of newsgroups:/access:, we recommend

    read: "arbitration.*"
    post: "!*"


>200 linux.local InterNetNews NNRP server INN 2.4.0 ready (posting ok).

INN 2.4.1 was released last week and includes a (possibly
exploitable) security fix.  You should upgrade as soon as
possible.  Just compile with the same options and do `make
update`, then restart INN.

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Reader.conf problem
#67668
Author: Benedict White
Date: Tue, 13 Jan 2004 11:56
68 lines
2605 bytes

"Jeffrey M. Vinocur" wrote:

> In article <4003D7A2.6F65B0B9@NOmyrealboxSPAM.com>,
> Benedict White  <benedict@NOmyrealboxSPAM.com> wrote:
> >
> >I am trying to get my head around reader.conf.
>
> (It's readers.conf, by the way.)

Oops. Typo.

>
>
> >auth "read-only" {
> >    hosts: "*"
> >    default: "<localhost>@law4free.org.uk"
> >}
> >
> >access "read-only" {
> >    users: "<read>@example.com"
> >#    read: "*"
> >    newsgroups: "arbitration.*"
> >    access: R
> >}
>
> Well, there's your problem.  You're calling users who connect
> from the outside world "<localhost>@law4free.org.uk" but never
> giving that identity any matching access group.  The above access
> group certainly doesn't apply, since it only matches users with
> identity "<read>@example.com".
>

Many thanks. I knew it would be obvious, I just was not looking in the
right place. Works now.

>
> And by the way, instead of newsgroups:/access:, we recommend
>
>     read: "arbitration.*"
>     post: "!*"

Cheers. Implemented that. Thanks for the advice.

>
>
> >200 linux.local InterNetNews NNRP server INN 2.4.0 ready (posting ok).
>
> INN 2.4.1 was released last week and includes a (possibly
> exploitable) security fix.  You should upgrade as soon as
> possible.  Just compile with the same options and do `make
> update`, then restart INN.
>

I installed it with RPMS.s etc. I am waiting for SUSE to update their
updates.

Make? Ouch sounds to scary for me. <G>


Many thanks and kind regards


--
Benedict White

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