Thread View: news.software.nntp
7 messages
7 total messages
Started by Ivan A. Kosarev
Sat, 29 Oct 2005 14:51
Group list for default user
Author: Ivan A. Kosarev
Date: Sat, 29 Oct 2005 14:51
Date: Sat, 29 Oct 2005 14:51
59 lines
2558 bytes
2558 bytes
Hello,
Strange things happen with my INN. When I'm accessing to my news server with
Outlook Express, everything works just fine: there is a list of group for
unauthorized users and there are password-protected accounts which provide
access to some extra groups. Absolutely no problem, the extra groups are not
listed in the reader until I'm successuflly logged.
However, once I used a telnet utility to logon to the news server and then
typed the "list" command, all the existing groups appear - whether they
actually should be accessible for unauthorized users or not.
My readers.conf contains the following definitions:
---
auth "users" {
auth: "/usr/local/news/bin/ckpasswd -f /usr/local/news/etc/userpasswd"
default: <public>
}
access "public" {
users: "<public>"
read: "!*, public.*"
post: "!*, public.*, !public.announces"
}
access "admin" {
users: "me"
newsgroups: "*"
}
---
And this is what telnet log I referred above:
---
200 bsd.localhost.localdomain InterNetNews server INN 2.4.1 ready
list
215
control 0000000000 0000000001 n
control.cancel 0000000000 0000000001 n
control.checkgroups 0000000000 0000000001 n
control.newgroup 0000000000 0000000001 n
control.rmgroup 0000000000 0000000001 n
junk 0000000000 0000000001 n
public.a 0000000000 0000000001 y
public.b 0000000002 0000000001 y
public.c 0000000000 0000000001 y
public.announces 0000000000 0000000001 y
..
---
Could anyone clear how to solve the problem?
Thanks.
--
Unicals Group -- Development Tools for OEMs
http://www.unicals.com
Re: Group list for default user
Author: Jeffrey M. Vinocur
Date: Sat, 29 Oct 2005 16:03
Date: Sat, 29 Oct 2005 16:03
48 lines
2399 bytes
2399 bytes
In article <3shgk1Fo7dfnU1@individual.net>,
Ivan A. Kosarev <ikosarev@online.ru> wrote:
>
>Strange things happen with my INN. [...]
Is this new, or did you just happen to notice it?
>However, once I used a telnet utility to logon to the news server and then
>typed the "list" command, all the existing groups appear - whether they
>actually should be accessible for unauthorized users or not.
>
>My readers.conf contains the following definitions:
>---
>auth "users" {
> auth: "/usr/local/news/bin/ckpasswd -f /usr/local/news/etc/userpasswd"
> default: <public>
>}
>
>access "public" {
> users: "<public>"
> read: "!*, public.*"
> post: "!*, public.*, !public.announces"
>}
>
>access "admin" {
> users: "me"
> newsgroups: "*"
>}
>---
Well, there's definitely something wrong here, assuming any
entries in your userpasswd file have usernames besides "me" and
"<public>", because there's no access group for those users.
Are you sure that's the whole readers.conf?
If you're interested on figuring this out yourself, enable
news.debug logging (by adding a line for "news.debug" in
syslog.conf just like "news.notice" etc, and HUP'ing syslogd),
and watch that log file as you connect in various ways. It will
tell you in great detail how readers.conf is being parsed.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Group list for default user
Author: Ivan A. Kosarev
Date: Sat, 29 Oct 2005 16:33
Date: Sat, 29 Oct 2005 16:33
67 lines
3058 bytes
3058 bytes
"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message
news:dk06hc$p1j$3@puck.litech.org...
> In article <3shgk1Fo7dfnU1@individual.net>,
> Ivan A. Kosarev <ikosarev@online.ru> wrote:
>>
>>Strange things happen with my INN. [...]
>
> Is this new, or did you just happen to notice it?
I just installed the INN and found that there is the problem.
>>However, once I used a telnet utility to logon to the news server and then
>>typed the "list" command, all the existing groups appear - whether they
>>actually should be accessible for unauthorized users or not.
>>
>>My readers.conf contains the following definitions:
>>---
>>auth "users" {
>> auth: "/usr/local/news/bin/ckpasswd -f /usr/local/news/etc/userpasswd"
>> default: <public>
>>}
>>
>>access "public" {
>> users: "<public>"
>> read: "!*, public.*"
>> post: "!*, public.*, !public.announces"
>>}
>>
>>access "admin" {
>> users: "me"
>> newsgroups: "*"
>>}
>>---
>
> Well, there's definitely something wrong here, assuming any
> entries in your userpasswd file have usernames besides "me" and
> "<public>", because there's no access group for those users.
Shouldn't the "public" and "admin" access groups be access groups for the
users?
So, could you please tell me how a corrected config should look for my case?
> Are you sure that's the whole readers.conf?
Yep, all other lines are commented. Anyway, that works as expected.
> If you're interested on figuring this out yourself, enable
> news.debug logging (by adding a line for "news.debug" in
> syslog.conf just like "news.notice" etc, and HUP'ing syslogd),
> and watch that log file as you connect in various ways. It will
> tell you in great detail how readers.conf is being parsed.
I tried this by adding
news.debug /dev/console
to my syslog.conf and rebooting. Well, I didn't see any new messages during
a test session. Is it looks so there anything wrong with my system?
Thank you.
--
Unicals Group -- Development Tools for OEMs
http://www.unicals.com
Re: Group list for default user
Author: Jeffrey M. Vinocur
Date: Sat, 29 Oct 2005 16:43
Date: Sat, 29 Oct 2005 16:43
52 lines
3034 bytes
3034 bytes
In article <3shmhtFoc4oiU1@individual.net>, Ivan A. Kosarev <ikosarev@online.ru> wrote: >"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message >news:dk06hc$p1j$3@puck.litech.org... > >> Well, there's definitely something wrong here, assuming any >> entries in your userpasswd file have usernames besides "me" and >> "<public>", because there's no access group for those users. > >Shouldn't the "public" and "admin" access groups be access groups for the >users? INN matches the users: line in an access group to decide if it should be used. So in your case, if the identity assigned is "<public>" the "public" group will be used, and if the identity assigned is "me" the "admin" group will be used, but otherwise no access group will apply. The default: line only applies to before ckpasswd is run; after ckpasswd checks the password, the authenticated username is used for matching access groups. >So, could you please tell me how a corrected config should look for my case? Do you want all authenticated users to match the admin group? >> If you're interested on figuring this out yourself, enable >> news.debug logging (by adding a line for "news.debug" in >> syslog.conf just like "news.notice" etc, and HUP'ing syslogd), >> and watch that log file as you connect in various ways. It will >> tell you in great detail how readers.conf is being parsed. > >I tried this by adding > >news.debug /dev/console > >to my syslog.conf and rebooting. Well, I didn't see any new messages during >a test session. Is it looks so there anything wrong with my system? Oh. I should have noticed this before. Your test isn't using readers.conf, because it's coming from an IP address that is listed in your incoming.conf as a peer. If you want to be testing readers.conf, you have to come from a different IP address or start each session with MODE READER. -- Jeffrey M. Vinocur jeff@litech.org
Re: Group list for default user
Author: Ivan A. Kosarev
Date: Sat, 29 Oct 2005 16:54
Date: Sat, 29 Oct 2005 16:54
67 lines
3634 bytes
3634 bytes
"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message news:dk08rf$p1j$5@puck.litech.org... > In article <3shmhtFoc4oiU1@individual.net>, > Ivan A. Kosarev <ikosarev@online.ru> wrote: >>"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message >>news:dk06hc$p1j$3@puck.litech.org... >> >>> Well, there's definitely something wrong here, assuming any >>> entries in your userpasswd file have usernames besides "me" and >>> "<public>", because there's no access group for those users. >> >>Shouldn't the "public" and "admin" access groups be access groups for the >>users? > > INN matches the users: line in an access group to decide if it > should be used. So in your case, if the identity assigned is > "<public>" the "public" group will be used, and if the identity > assigned is "me" the "admin" group will be used, but otherwise no > access group will apply. > > The default: line only applies to before ckpasswd is run; after > ckpasswd checks the password, the authenticated username is used > for matching access groups. Assuming there is the only password-protected account named "me", this looks to be correct to me. Why do you thing that's wrong? >>So, could you please tell me how a corrected config should look for my >>case? > > Do you want all authenticated users to match the admin group? Yes, for now, and just for testing purposes, just to show the system works as I see it, if the system really does. >>> If you're interested on figuring this out yourself, enable >>> news.debug logging (by adding a line for "news.debug" in >>> syslog.conf just like "news.notice" etc, and HUP'ing syslogd), >>> and watch that log file as you connect in various ways. It will >>> tell you in great detail how readers.conf is being parsed. >> >>I tried this by adding >> >>news.debug /dev/console >> >>to my syslog.conf and rebooting. Well, I didn't see any new messages >>during >>a test session. Is it looks so there anything wrong with my system? > > Oh. I should have noticed this before. > > Your test isn't using readers.conf, because it's coming from an > IP address that is listed in your incoming.conf as a peer. If > you want to be testing readers.conf, you have to come from a > different IP address or start each session with MODE READER. I use the "-a" key when running innd. Should the incoming.conf file be ignored in this case? Anyway, I'm sure the readers.conf is used with my test sessions. Once I made a change in the file, the INN works differently. -- Unicals Group -- Development Tools for OEMs http://www.unicals.com
Re: Group list for default user
Author: Jeffrey M. Vinocur
Date: Sat, 29 Oct 2005 17:57
Date: Sat, 29 Oct 2005 17:57
54 lines
2806 bytes
2806 bytes
In article <3shnqdFo2vf8U1@individual.net>, Ivan A. Kosarev <ikosarev@online.ru> wrote: > >Assuming there is the only password-protected account named "me", this looks >to be correct to me. Why do you thing that's wrong? I mentioned originally, assuming any entries in your userpasswd file have usernames besides "me" and "<public>" to cover this possibility, and you didn't seem to think it applied. So I concluded that you had other entries. If you don't, then your config is fine. >> Your test isn't using readers.conf, because it's coming from an >> IP address that is listed in your incoming.conf as a peer. If >> you want to be testing readers.conf, you have to come from a >> different IP address or start each session with MODE READER. > >I use the "-a" key when running innd. Should the incoming.conf file be >ignored in this case? > >Anyway, I'm sure the readers.conf is used with my test sessions. Once I made >a change in the file, the INN works differently. Yes, you're confused. Here's how incoming connections are handled: 1. If innd is run with -a, go to #5 2. If the comes from a connection in incoming.conf, go to #5 3. Hand the connection to nnrpd for use limited by readers.conf 4. Go to #7 5. Permit unrestricted peering access (ignore readers.conf) 6. If a MODE READER command is sent, go to #3 7. Close connection Most newsreader software automatically sends MODE READER, so when you test with a client, you're seeing readers.conf used as in #3. But when you test with telnet, and don't send MODE READER and so you're falling into #5. -- Jeffrey M. Vinocur jeff@litech.org
Re: Group list for default user
Author: Ivan A. Kosarev
Date: Sat, 29 Oct 2005 19:42
Date: Sat, 29 Oct 2005 19:42
15 lines
1548 bytes
1548 bytes
"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message news:dk0d5m$p1j$6@puck.litech.org... > Most newsreader software automatically sends MODE READER, so when > you test with a client, you're seeing readers.conf used as in #3. > But when you test with telnet, and don't send MODE READER and so > you're falling into #5. I removed the -a key, and got it worked. Thank you much. -- Unicals Group -- Development Tools for OEMs http://www.unicals.com
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