Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!uwvax!dave@cs.wisc.edu From: dave@cs.wisc.edu (Dave Cohrs) Newsgroups: comp.unix.wizards Subject: Re: invisible to who(1) Keywords: login who finger invisible tty Message-ID: <6938@spool.cs.wisc.edu> Date: 29 Dec 88 15:30:08 GMT References: <1499@tuhold> Sender: news@spool.cs.wisc.edu Reply-To: dave@cs.wisc.edu (Dave Cohrs) Organization: U of Wisconsin CS Dept Lines: 29 In article <1499@tuhold> gfl@tuhold (Gerhard Fleischanderl) writes: >On a dial-in line at a MicroVAX-II (Ultrix 2.0), we encounter >a strange phenomenon: >A login on this line (tty03) is not recognized by who(1) nor finger(1). >However, the login-shell is shown for TTY 03 by ps(1). > >There is a hard link between /dev/tty03 and /dev/ttyd0. At the next login, >ttyd0 is reported as name of the terminal-line with "Last login: ...". >Furthermore, a DIALUP is recorded for ttyd0 in the syslog-file. Get rid of the hard link. The various programs, like ps, who and login have problems with tty's with identity crises. Either call the thing "tty03" everywhere, including in /dev, or "ttyd0", but don't give it two names. The problem is that some programs use /etc/ttys (or whatever) to map the tty name into things, and other programs search /dev until they find a matching major/minor number. The search stops on the *first* file with the correct major/minor number, which might not have the same name as the tty mentioned in /etc/ttys, and viola, the user doesn't show up in "who". Ultrix may have additional problems with skitzo tty's, but the above is the basic problem. I'd suggest "rm /dev/tty03" and treat the thing like a dialup line. dave cohrs -- Dave Cohrs +1 608 262-6617 UW-Madison Computer Sciences Department dave@cs.wisc.edu ...!{harvard,rutgers,ucbvax}!uwvax!dave