🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by David P. Kemp Fri, 02 Jul 1993 18:59
trn-3.0 fails to recognize NNTP access denied
#4791
Author: David P. Kemp
Date: Fri, 02 Jul 1993 18:59
36 lines
2262 bytes
I have installed trn 3.0 on a SPARCstation-10 running Solaris 2.2.
The only problem during installation was that "configure" guessed
wrong about termios support - I had to edit config.sh by hand to
set "i_termios='define'" since the default i_sgtty won't work
on Solaris.  Has anyone had trn 3.0 configure itself correctly
for Solaris?  Other than this one small nit, it compiled just
fine (using the Sunsoft compiler).

The problem comes when trying to connect to an NNTP server without
permission.  I believe the scenario is thus:

  nntp_connect() calls server_init(), then is supposed to print
  the appropriate response message ("This machine does not have
  permission to use the xxx news server.")

  However, server_init() never returns, because it calls nntp_check(),
  which fails and dies with "Unexpected close of server socket".

Using telnet, the NNTP server returns the appropriate 502 error code.

One suggestion: the message "Unexpected close of server socket"
appears identically in three different routines - it would help
if the three were distinguished somehow (such as prefacing it
with the routine name: prefetchlines, nntp_check, or nntp_gets).

I wouldn't presume to offer a fix for the real problem, but I
would guess that nntp_check and nntp_gets are not intended to be
used until the connection is completely established.  That implies
that they shouldn't be called from server_init.  Or I could be
mistaken :-).


-- 
   Dave Kemp   dpkemp@afterlife.ncsc.mil 
-----------------------------------------------------------------------------
"If it doesn't have an analogy, it isn't Usenet (tm)"
Re: trn-3.0 fails to recognize NNTP access denied
#4929
Author: Steve Lodin
Date: Wed, 14 Jul 1993 19:38
40 lines
1920 bytes
I also see this.

From a valid machine:
[8] kocrsw15: trn
Unread news in delco.app.editors                            2 articles
Unread news in delco.dsds.compiler                          1 article
Unread news in delco.dsds.dsds                              4 articles
Unread news in delco.dsds.util                              1 article
Unread news in bit.listserv.ibmtcp-l                        1 article
etc.

======   2 unread articles in delco.app.editors -- read now? [+ynq] v
@(#)$Id: trn.c,v 3.0 1991/11/22 00:14:59 davison Trn $
Version: 3.0 

From an invalid machine:

[5] kocrsv01: trn
IOT trap
[6] kocrsv01: telnet kocrsv01 nntp
Trying 144.250.3.4 ...
Connected to kocrsv01.
Escape character is '^]'.
502 kocrsv01 NNTP server can't talk to you.  Goodbye.
Connection closed by foreign host.


In the nntplog file:

Jul 14 14:33:04 kocrsv01 nntpd[19128]: kocrsv01 connect
Jul 14 14:33:04 kocrsv01 nntpd[19128]: kocrsv01 refused connection


Steve
-- 
Steve Lodin	Internet: swlodin@kocrsv01.delcoelect.com  UUCP: deaes!swlodin


		"So much mail, so little time."
Re: trn-3.0 fails to recognize NNTP access denied
#4950
Author: William C Fenner
Date: Thu, 15 Jul 1993 14:20
12 lines
1233 bytes
In article <1993Jul14.193839.19290@kocrsv01.delcoelect.com> swlodin@kocrsv01.delcoelect.com (Steve Lodin) writes:
>[5] kocrsv01: trn
>IOT trap

If you're getting the name of the NNTP server from a file, then this is a
bug in trn 3.0 which I reported and will presumably be fixed in 3.1 .
Meanwhile, try setting your NNTPSERVER environment variable before running
trn, and see if you get the proper behavior.

  Bill
-- 
Bill Fenner                  fenner@cmf.nrl.navy.mil
Re: trn-3.0 fails to recognize NNTP access denied
#4947
Author: Steve Lodin
Date: Thu, 15 Jul 1993 17:14
30 lines
1856 bytes
In article <CA7MHw.Dqs@ra.nrl.navy.mil>, fenner@cmf.nrl.navy.mil (William C Fenner) writes:
> In article <1993Jul14.193839.19290@kocrsv01.delcoelect.com> swlodin@kocrsv01.delcoelect.com (Steve Lodin) writes:
> >[5] kocrsv01: trn
> >IOT trap
> 
> If you're getting the name of the NNTP server from a file, then this is a
> bug in trn 3.0 which I reported and will presumably be fixed in 3.1 .
> Meanwhile, try setting your NNTPSERVER environment variable before running
> trn, and see if you get the proper behavior.

Yep, we are getting it via the /usr/lib/news/server file.

If I set the environment variable and execute trn, it looks much
better:

This machine does not have permission to use the kocrsv01.delcoelect.com news server.

Unexpected close of server socket.


Thanks for the followup Bill.


Steve
-- 
Steve Lodin	Internet: swlodin@kocrsv01.delcoelect.com  UUCP: deaes!swlodin


	Delco Electronics - Where software makes the wheels go 'round
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