Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!umd5!uvaarpa!mcnc!decvax!decwrl!hplabs!hpda!hpesoc1!hpcllla!hpclisp!hpclscu!shankar From: shankar@hpclscu.HP.COM (Shankar Unni) Newsgroups: comp.unix.wizards Subject: Re: What is the hostname? Message-ID: <670005@hpclscu.HP.COM> Date: 1 Feb 88 21:28:03 GMT References: <5334@burdvax.PRC.Unisys.COM> Organization: HP ISD Computer Language Lab Lines: 22 > the internet address of the PC? i.e. I notice that Debbie is using > tty T0. What is the host address of the machine that Debbie is using? > > I've wracked my brains and can't figure out how to determine this. > The information has to be hiding somehwere and I want to bring it > to the surface. Thanks in advance. I posted this question on an internal forum sometime back (having somewhat the same concerns). The answer seems to be: BSD-style unixes (unices?) have a place in the utmp entry for the hostname of the originator of a remote session. Sys5-style unices don't. The suggestions I got were: (a) hack up login/telnet/ rlogin etc. to put hostname info in the utmp entries or (b) do an ugly search of utmp entries, inetd logs, etc to match up entries to figure out who the originator was. Needless to say, it is not an easy task... Can someone else confirm this for me? ----------------------------------------------------------------------------- Shankar Unni allegra) Arpa Mail: shankar@hpda.HP.COM UUCP: ucbvax)!hplabs!hpda!shankar AT&T: (408) 447-5797 decwrl) -----------------------------------------------------------------------------