Article View: news.software.nn
Article #11415Re: NN Manual group access
From: John F. Morse
Date: Tue, 07 Aug 2012 04:45
Date: Tue, 07 Aug 2012 04:45
191 lines
8517 bytes
8517 bytes
Aaron W. Hsu wrote:
> Hey John:
>
> I want to talk about this little chunk here...
>
> "John F. Morse" <john@example.invalid> writes:
>> Aaron W. Hsu wrote:
>>
>>> If you had tried to do the same thing with NN, it would have also asked
>>> you for authentication.
>>>
>> I cannot do the same thing with NN, such as send the "authinfo" command,
>> which is easy with telnet. Therefore I'm only presented the group that
>> doesn't require authentication.
>>
>
> Firstly, NN should never *present* any groups to you, as it should always
> just jump into the first subscribed group in selection mode, ready for
> reading, unless you use the -a option for catchup. At any rate, NN will
> still not "know" about any of the other groups because you only list some
> of them, *but* this should not prevent you from accessing those other
> groups. You should be able to specify the group explicitly and NN should
> try to get to it, get a 480 authentication error from your server, whereupon
> it will send the authinfo. You can do this on the command line, but please
> also try with the 'G' key. It should try to access that group. I would
> appreciate knowing what response it gives.
>
If I run nn with no options, the process ends immediately.
john@hardy:$ time nn
real 0m0.138s
user 0m0.012s
sys 0m0.012s
I must use the -g option to keep NN running.
john@hardy:~$ nn -g
Enter Group or Folder (+./~)
At this prompt I must enter a group name.
"No group matching `local test'" is what I receive here.
Or after successfully entering the one open group local.info -- and then
after using G and supplying the local.test newsgroup name -- I still
receive the "No group matching `local test'" as before.
The group exists but NN cannot see it because the server isn't providing
groups that are protected by authentication.
>> The 480 error is actually designed for a transit server:
>>
>> 480 transfer permission denied. Response to CHECK if transfer is not
>> allowed.
>>
>
> See my NNTP discussion message for my thoughts on 480.
>
Yes, you wrote:
480: The client must authenticate itself to the server (that is, it
must provide information as to the identity of the client)
before the facility can be used on this connection.
That is exactly how it is working.
Note the wording "used on this connection" above.
I'm already into a "connection" at this time. Some newsreaders allow
more "connections" usually one to four.
Here are the two "connection" (#1547 and #1548) attempts from a tail on
the server's /var/log/news/news.notice file:
Aug 6 22:03:29 news5 nnrpd[1547]: hardy.my.net (192.168.30.10) connect
- port 119
Aug 6 22:03:36 news5 nnrpd[1547]: hardy.my.net times user 0.992 system
0.188 idle 0.000 elapsed 7.312
Aug 6 22:03:36 news5 nnrpd[1547]: hardy.my.net time 7440 idle 5972(4)
nntpwrite 3(12)
Aug 6 22:03:40 news5 nnrpd[1548]: hardy.my.net (192.168.30.10) connect
- port 119
Aug 6 22:03:49 news5 nnrpd[1548]: hardy.my.net group local.info 0
Connection 1547 was the initial connection attempt to local.test, which
I do not have access privileges because I didn't authenticate, because
NN wasn't pushing authentication.
Connection 1548 is where I used G to enter local.info which is the only
group I could access while unauthenticated.
I went back and ran the tests again, accessing local.info and actually
reading one article:
Aug 6 22:16:39 news5 nnrpd[1548]: hardy.my.net group local.info 1
Aug 6 22:16:39 news5 nnrpd[1548]: hardy.my.net exit articles 1 groups 2
Aug 6 22:16:39 news5 nnrpd[1548]: hardy.my.net times user 1.516 system
0.172 idle 0.000 elapsed 780.329
Aug 6 22:16:39 news5 nnrpd[1548]: hardy.my.net artstats get 1 time 0
size 2103
Aug 6 22:16:40 news5 nnrpd[1548]: hardy.my.net time 780465 idle
778013(8) readart 0(1) nntpwrite 1(24)
Notice the second line is the exit ("Q" in NN), and shows the total of
two group commands, both for local.info. The article command was
received only once (I didn't use "Z" on the second test).
Now compare the above NN session with this news server's
/var/log/news/news.notice log file when I use TIN, and it asks for
authentication, which I supply:
Aug 6 22:44:08 news5 nnrpd[2211]: hardy.my.net (192.168.30.10) connect
- port 119
Aug 6 22:44:16 news5 nnrpd[2211]: hardy.my.net user john
Aug 6 22:44:20 news5 nnrpd[2211]: hardy.my.net group alt.nn.test 0
Aug 6 22:44:20 news5 nnrpd[2211]: hardy.my.net group
alt.os.linux.slackware 0
Aug 6 22:44:20 news5 nnrpd[2211]: hardy.my.net group local.announce 0
Aug 6 22:44:20 news5 nnrpd[2211]: hardy.my.net group local.binaries 0
Aug 6 22:44:20 news5 nnrpd[2211]: hardy.my.net group local.computers 0
Aug 6 22:44:20 news5 nnrpd[2211]: hardy.my.net group local.info 0
Aug 6 22:44:20 news5 nnrpd[2211]: hardy.my.net group local.test 0
Aug 6 22:44:20 news5 nnrpd[2211]: hardy.my.net group news.software.nn 0
Aug 6 22:44:20 news5 nnrpd[2211]: hardy.my.net group de.comp.os.os2 0
Aug 6 22:44:20 news5 nnrpd[2211]: hardy.my.net group
nl.comp.os.linux.techniek 0
Aug 6 22:44:47 news5 nnrpd[2211]: hardy.my.net exit articles 1 groups 10
Aug 6 22:44:47 news5 nnrpd[2211]: hardy.my.net times user 2.508 system
2.148 idle 0.029 elapsed 40.036
Aug 6 22:44:47 news5 nnrpd[2211]: hardy.my.net artstats get 1 time 0
size 1539
Aug 6 22:44:48 news5 nnrpd[2211]: hardy.my.net time 40186 idle
33955(21) readart 18(1) nntpwrite 2786(78418)
Here the exit totals, shown in the first 22:44:47 line, were 10 group
commands and one article command.
The terminal command I used to launch TIN was:
tin -rAg news5
From tin(1), those command options are:
-r Read news remotely from the default NNTP server specified
in the environment variable $NNTPSERVER or contained in
the file /etc/news/server.
-A Force authentication on initial connect.
-g server Use this server, overriding $NNTPSERVER.
TIN can read news locally from a local spool (e.g. /var/spool/news), or
remotely with "rtin" or "tin -r" option).
The environment variable $NNTPSERVER is empty.
My /etc/news/server has "localhost" because I usually use TIN to access
another local server that requires TLS, which is provided by Stunnel on
this localhost computer.
john@hardy:~/.tin$ man 1 tin | wc -l
2966
john@hardy:~/.tin$ man 5 tin | wc -l
2178
john@hardy:~/.tin$ man nn | wc -l
4618
HTH.
--
John
When a person has -- whether they knew it or not -- already
rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID:
<jvq6hb$jke$1@n102.xanadu-bbs.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mailReferences:
<c6e80c2a-e732-4f7c-8071-48c2d284a81a@googlegroups.com> <1aydncHF-7-KR4fNnZ2dnUVZ_u-dnZ2d@giganews.com> <jvet6k$n0i$1@n102.xanadu-bbs.net> <4fSdndK4LcY5vYHNnZ2dnUVZ_h2dnZ2d@giganews.com> <jvhorp$ekl$1@n102.xanadu-bbs.net> <CpOdnbBHrtmv6oDNnZ2dnUVZ_iydnZ2d@giganews.com> <jvktrf$8g2$1@n102.xanadu-bbs.net> <xYGdndRdjYlVv4PNnZ2dnUVZ_hydnZ2d@giganews.com> <jvom7t$7dc$1@n102.xanadu-bbs.net> <d62dnRBTleE7ib3NnZ2dnUVZ_jOdnZ2d@giganews.com>Show Full Headers
Complete Article Headers
Message-ID: <jvq6hb$jke$1@n102.xanadu-bbs.net> Subject: Re: NN Manual group access Date: Mon, 06 Aug 2012 23:45:31 -0500 From: "John F. Morse" <john@example.invalid> References: <c6e80c2a-e732-4f7c-8071-48c2d284a81a@googlegroups.com> <1aydncHF-7-KR4fNnZ2dnUVZ_u-dnZ2d@giganews.com> <jvet6k$n0i$1@n102.xanadu-bbs.net> <4fSdndK4LcY5vYHNnZ2dnUVZ_h2dnZ2d@giganews.com> <jvhorp$ekl$1@n102.xanadu-bbs.net> <CpOdnbBHrtmv6oDNnZ2dnUVZ_iydnZ2d@giganews.com> <jvktrf$8g2$1@n102.xanadu-bbs.net> <xYGdndRdjYlVv4PNnZ2dnUVZ_hydnZ2d@giganews.com> <jvom7t$7dc$1@n102.xanadu-bbs.net> <d62dnRBTleE7ib3NnZ2dnUVZ_jOdnZ2d@giganews.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mail Newsgroups: news.software.nn Organization: Xanadu BBS Lines: 191 Reply-To: dont.bother NNTP-Posting-Host: 4qHUE4Vte7yJH24F0tJGG5ugKIE Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Tue, 7 Aug 2012 04:45:31 +0000 (UTC) User-Agent: Thunderbird 2.0.0.24 (X11/20101027) In-Reply-To: <d62dnRBTleE7ib3NnZ2dnUVZ_jOdnZ2d@giganews.com> X-Enigmail-Version: 0.96.0 X-Received-Bytes: 8107 X-Original-Bytes: 8215