Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!rex!mb From: mb@rex.cs.tulane.edu (Mark Benard) Newsgroups: comp.unix.questions Subject: Finding the originating host on a network login Message-ID: <1158@rex.cs.tulane.edu> Date: 21 Oct 89 11:18:01 GMT Reply-To: mb@rex.cs.tulane.edu (Mark Benard) Organization: Computer Science Dept., Tulane Univ., New Orleans, LA Lines: 15 Sender: I am trying to determine how to find the 'foreign address' (such as x.cs.tulane.edu.1234, as displayed by netstat -a) of a user who is logged in via rlogin or telnet over the network. Ideally, I would like to be able to display a list of all users logged in and the host or terminal server they are connected from. (Note: last displays this information, but only if rlogin was used.) If there is no easy answer, then I guess that the question becomes: netstat -A gives me protocol control blocks. How do I determine the process associated with a PCB? -- Mark Benard Department of Computer Science INTERNET & BITNET: mb@cs.tulane.edu Tulane University USENET: rex!mb New Orleans, LA 70118