[5412] in Kerberos

home help back first fref pref prev next nref lref last post

Solaris2 kerberos problem: no access to tty; thus no job control . .

daemon@ATHENA.MIT.EDU (Christopher Hylands)
Wed Jun 21 18:38:50 1995

To: kerberos@MIT.EDU
Date: 21 Jun 1995 22:23:54 GMT
From: cxh@markov.berkeley.edu (Christopher Hylands)

I've run up against the following bug under Solaris2.4:

When I rlogin to a Solaris2 host running klogind, I get the message:
Warning: no access to tty; thus no job control in this shell...

This message comes from /bin/csh.  Running a trace shows that just
before the message is output, a TIOCGPGRP ioctol is failing:

	ioctl(18, TCGETA, 0xEFFFFC5C)			= 0
	ioctl(18, TIOCGPGRP, 0x00047A88)		Err#25 ENOTTY
	ioctl(17, TIOCLGET, 0xEFFFFB5C)			= 0
	write(17, " W a r n i n g :   n o  ".., 64)	= 64

The termio man page says:
     ENOTTY         The file associated with fildes is not a terminal.


I get a similar message with tcsh-6.05, where tcgetpgrp() is failing.

I get this message with Cygnus' CNS code, and with a local KerberosIV
installation.  My guess is that this is some sort of nasty Solaris
botch.

Interestingly, the CNS telnetd works fine, I have job control and
everything.  Both telnetd and klogind are using the same login.krb
binary.

Any ideas?

BTW - I had a wierd failure with login.krb where rlogin was just
immediately exiting:
	cxh@foo.EECS.Berkeley.EDU> /usr/kerberos/bin/rlogin bar
	Last login: Tue Jun 20 17:37:16 from bif.eecs.berk
	rlogin: connection closed.
	cxh@fooa.EECS.Berkeley.EDU> 

After poking around with the CNS login.kerb, it looks login.krb was
calling initgroups() which was failing.  I hacked login.c to use the
initgroups() contained there for SCO, and now I can at least use
rlogin.  I'm not sure what the cause of the problem was . . .


-Christopher
--
Christopher Hylands			University of California
cxh@eecs.berkeley.edu 			558 Cory Hall #1770
ph: (510)643-9841 fax:(510)642-2739	Berkeley, CA 94720-1770
home: (510)526-4010 (if busy -4068)	(Office: 493 Cory. US Mail: 558 Cory.)

home help back first fref pref prev next nref lref last post