🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.sysadmin
Article #1644

rlogin ---> no controlling tty ? (bug ?)

#1644
From: Huisjes MJ
Date: Wed, 30 Sep 1992 16:15
48 lines
1627 bytes
Hi,

For some reason when you do a rlogin, the rlogind on the other side does
not set your controlling tty. This can be repeated by any user with /bin/sh as
login shell :

	$ rlogin <some machine>
	..
	$ tty
	/dev/ttyp0
	$ echo hello > /dev/tty
	/dev/tty: cannot create
	$ ls -l /dev/tty
	crw-rw-rw-  1 root              2,   0  Jul  30 22:50 /dev/tty
	$

The actual error (errno) is not "cannot create" but :
	
	$ csh
	machine-name> echo hello > /dev/tty
	/dev/tty: No such device or address
	machine-name> exit
	$ ps -l $$
        F  UID   PID  PPID CP PRI BASE VSIZE RSIZE WCHAN STAT TT  TIME COMMAND
        1   32  1150  1148  0  10   10 8.64M  144K     0  S   ?   0:00 -sh (sh)
							     ^^^

	$

e.g. no controlling tty. You can acquire one because the first terminal
you open will become you controlling tty.
	
	$ echo hello > `tty`
	hello
	$ echo hello > /dev/tty
	hello
	$

For /bin/sh this is no big problem just add "echo -n > `tty`" to
your .profile . But tcsh will refuse to acquire a new controlling tty
(which is ofcourse correct).

This happens in both NS 2.x and NS 3.0.

This is a bug isn't it ?
-- 
Maarten Huisjes.	mjh@cs.vu.nl (192.31.231.42)
			(..!uunet.uu.net!cs.vu.nl!mjh)
Technical Details
Message-ID: <BvEFu2.8xI@cs.vu.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!star.cs.vu.nl!mjh

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin,comp.sys.next.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!star.cs.vu.nl!mjh
From: mjh@cs.vu.nl (Huisjes MJ)
Subject: rlogin ---> no controlling tty ? (bug ?)
Message-ID: <BvEFu2.8xI@cs.vu.nl>
Keywords: rlogin tty
Sender: news@cs.vu.nl
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Date: Wed, 30 Sep 1992 16:15:38 GMT
Lines: 48