Subject: pre authentication----more forgiving?

From: Ed Greshko <[email-masked]>
Date: Tue, 8 Oct 1996 11:09:09 +0800 (GMT)

Hi,

	Just want to make a note here.....

	I'm running pine3.95 under Solaris with tcsh.  I've some entries
in my .login and .cshrc files which include a couple of stty commands.
They "seem" to be needed when I'm using some telnet clients from my 
PC.  I say "seem" since I'll have to go back an recheck....

	Anyway, if an rsh is done a system on the network to the system
with my INBOX I will always get:

stty: : Invalid argument

	Whatever command I enter in the rsh will work fine.....

	So, I get the following with imapd:

hobbes[49]% rsh calvin /etc/rimapd
stty: : Invalid argument
* PREAUTH calvin.twntpe.cdc.com IMAP4 Service 8.3(140) at Tue, 8 Oct 1996
10:57:15 +0800 (GMT) (Report problems in this server to
[email-masked])

	This will cause pine to consider this a failure and ask me for
my username/pw.  Removing the stty commands fixes the problem.  Maybe
the pre-authentication process can be a bit more forgiving?

	Regards,

		Ed

-- 
Edward M. Greshko                  Technical Manager, Electronic Commerce
                                   Control Data Asia/Pacific Region
Voice: +886-2-715-2222 x287        6/F, 131 Nanking East Road, Section 3
FAX  : +886-2-712-9197             Taipei, Taiwan R.O.C

---

From: "Richard G. Roberto" <[email-masked]>
Date: Mon, 7 Oct 1996 23:48:29 -0400 (EDT)

> with my INBOX I will always get:

This is because your trying to execute an stty command (via
.cshrc or .login) but there is no tty!  You should move
these stty commands into .login and wrap them in something
like:

if ($?prompt) then
 stty ...
 stty ...
endif

I'm not sure about the exact syntax because I do not use
tcsh (and the prompt may need to be caps).  This is surely
in the tcsh man page.  As far as other shells go (i.e.
POSIX-like shells), htis test should suffice:

if `tty -s`;then
  stty ...
  stty ...
fi

> the pre-authentication process can be a bit more forgiving?

This breaks rdist on some systems as well, but the
rpeauthentication process doesn't need to be more forgiving,
the shell needs to be configured correctly (via .profile, or
in your case .login).

Hope this helps.

Richard G. Roberto
[email-masked]
011-81-3-3437-7967 - Tokyo, Japan

--
*******************************************************************************
Bear Stearns is not responsible for any recommendation, solicitation, offer or
agreement or any information about any transaction, customer account or account
activity contained in this communication.
*******************************************************************************

---

From: Ed Greshko <[email-masked]>
Date: Tue, 8 Oct 1996 11:59:40 +0800 (GMT)

> Hope this helps.

	Yes, it helps...and as time permits I'll work on fixing "my"
problem.  So, far this is the only "problem" I've had with my setup
so you can understand that there had been no incentive to find a
solution.  :-)

	Thanks,

		Ed