Xref: utzoo comp.sys.att:8452 unix-pc.general:4489 Path: utzoo!attcan!uunet!mcsun!sunic!uupsi!nyser!rpi!uwm.edu!uwvax!umn-d-ub!umn-cs!nis!quest!ssb From: ssb@quest.UUCP (Scott S. Bertilson) Newsgroups: comp.sys.att,unix-pc.general Subject: Re: Uniquely identifying a user: is it possible? Message-ID: <7986@quest.UUCP> Date: 12 Jan 90 02:18:06 GMT References: <25730@cup.portal.com> <1990Jan10.013922.28402@banzai.PCC.COM> Followup-To: comp.sys.att Organization: Quest Research Inc., Burnsville, MN Lines: 14 jay@banzai.PCC.COM (Jay Schuster) writes: >If there was some way of getting your tty group ID, you could search >through utmp and find its pid there. But I don't think there's any >wany of finding your tty group id without searching through /dev/kmem. On my SVR2 Altos, there *IS* a "getpgrp". It would seem to me that one could grab that and scan the "utmp" file to find what port the process is on. If the process has detached via "setpgrp", it would seem that your "utmp" entry doesn't apply anymore anyway. (I'd look at my 3b1, but it's at home..) -- Scott S. Bertilson ...uunet!rosevax!rose3!quest!ssb scott@poincare.geom.umn.edu