Date: Tue, 22 Oct 96 10:53:20 PST From: BRETT_GLASS@infoworld.com To: Wes Peters <softweyr@xmission.com> Cc: questions@freebsd.org Subject: Programming question: How to identify owner of a socket? Message-ID: <9609228460.AA846008353@ccgate.infoworld.com>
next in thread | raw e-mail | index | archive | help
> As far as I know, the client would have to send this information > across the link to the server. This is a special case, though: the client and the server are the same machine. (The user is coming in via a modem connection and SLiRP.) So, a privileged process ought to be able to find out what process has opened the socket and is using that port number -- from which it ought to be able to deduce the ID of the user. --Brett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9609228460.AA846008353>