Path: utzoo!utgpu!water!watmath!uunet!uvm-gen!bu-cs!bloom-beacon!tut.cis.ohio-state.edu!mailrus!ames!zorch!pacbell!gladys!bakerst!mtune!icus!lenny From: lenny@icus.UUCP (Lenny Tropiano) Newsgroups: unix-pc.general Subject: Multiple gettys on /dev/window (proper way?) Keywords: getty, window, login Message-ID: <301@icus.UUCP> Date: 19 Mar 88 18:39:20 GMT Distribution: unix-pc Organization: ICUS Computer Group, Islip, NY Lines: 40 What is the proper way to spawn a getty on /dev/window on the UNIX pc? I placed an entry in /etc/inittab that said: vid:2:respawn:/etc/getty window console vir:2:respawn:/etc/getty window console # Virtual console Which works fine, but has some side effects. Since both getty's are running of window, programs that rely on your terminal fail. For example: Login as root on one, and another login on another: $ who am i lenny + w1 Mar 19 11:23 . 4590 root + w3 Mar 19 11:25 . 4597 It cannot distinguish between us. Also if the program is just reading the /etc/utmp file, it will find lenny first logged in and assume I was lenny (even if I do it from root). Has someone thought of an alternative solution. Someone a while back suggested making a link to window: # ln /dev/window /dev/virtwin and changing the line to: vir:2:respawn:/etc/getty virtwin console # Virtual console This still doesn't work since the major, minor numbers are the same. I want to have a second login, just in case I lock up my terminal in a program, the extra window is a help! -Lenny -- US MAIL : Lenny Tropiano, ICUS Computer Group IIIII CCC U U SSS PO Box 1 I C U U S Islip Terrace, New York 11752 I C U U SS PHONE : (516) 968-8576 [H] (516) 582-5525 [W] I C U U S TELEX : 154232428 [ICUS] IIIII CCC UUU SSS AT&T MAIL: ...attmail!icus!lenny UUCP : ...{mtune, ihnp4, boulder, talcott, sbcs, bc-cis}!icus!lenny