Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!princeton!phoenix.Princeton.EDU!subbarao From: subbarao@phoenix.Princeton.EDU (Kartik Subbarao) Newsgroups: comp.unix.questions Subject: Re: where is the user logged in from. Sun OS 4.x Message-ID: Date: 21 May 91 14:17:01 GMT References: Sender: news@idunno.Princeton.EDU Reply-To: subbarao@phoenix.Princeton.EDU (Kartik Subbarao) Distribution: comp Organization: American Chemical Society Lines: 26 In article oneel@heawk1.gsfc.nasa.gov ( Bruce Oneel ) writes: >Hi, > I would like to find out where the user is logged in from when >the connect to us over tcp/ip. If I look in /etc/utmp or >/var/adm/wtmp I can find most of the address (up to 15 chars?) or so, >but I'd like the whole address. I'd also like their name on the >remote system, but I realize that this might be asking quite a bit. >Thanks!!! Do a netstat, look for their up to 15 lettered name, then do a netstat -n and see what IP address corresponds to that name. An alternative is to do ofiles on the in.{telnet,rlogin}d parent of their shell. And of course, Dan will gladly inform us that if the sites use his authd package, we can get the remote user name as well. -Kartik -- internet% ypwhich subbarao@phoenix.Princeton.EDU -| Internet kartik@silvertone.Princeton.EDU (NeXT mail) SUBBARAO@PUCC.BITNET - Bitnet