1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: Question for the list (Semi&#45;OT) -->
<!--X-From-R13: Xba Zrbaneq <wyrbaneqNqvipbz.fyvzl.pbz> -->
<!--X-Date: Mon, 17 Aug 1998 17:48:09 &#45;0700 -->
<!--X-Message-Id: 19980817133321.A22163#divcom,slimy.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Pine.GSO.3.95q.980815131903.2336A&#45;100000@uhunix1 -->
<!--X-Reference: Pine.LNX.3.96.980816115141.535B&#45;100000#andridys,ip.local -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: Question for the list (Semi-OT)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:jleonard#divcom,slimy.com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00754.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00756.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00744.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00748.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00755">Author</A>
&nbsp;|&nbsp;<A HREF="#00755">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00755">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: Question for the list (Semi-OT)</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: Question for the list (Semi-OT)</LI>
<LI><em>From</em>: Jon Leonard &lt;<A HREF="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</A>&gt;</LI>
<LI><em>Date</em>: Mon, 17 Aug 1998 13:33:21 -0700</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Sun, Aug 16, 1998 at 11:59:47AM +1200, Oliver Jowett wrote:
&gt; On Sat, 15 Aug 1998, Nathan F Yospe wrote:
&gt; 
&gt; &gt; What I'm looking for is a way, on a generalized unix platform, to track the
&gt; &gt; process that is currently binding a descriptor to a socket, and return that
&gt; &gt; process's pid, without su access...
&gt; &gt; 
&gt; &gt; For example, while on the host machine, I'd like to be able to make a call,
&gt; &gt; int p_id = get_owner(short portnum); Where I say p_id = get_owner(5000). It
&gt; &gt; seems like there should be some way to recover this, but... *shrug*
&gt; 
&gt; Without su access could be hairy.
&gt; 
&gt; lsof (<A  HREF="ftp://vic.cc.purdue.edu/pub/tools/unix/lsof">ftp://vic.cc.purdue.edu/pub/tools/unix/lsof</A>) will do it, but it
&gt; needs access to kernel memory on most systems. I think that it can work
&gt; entirely from /proc under recent linux kernels, although you need read
&gt; access to the appropriate /proc/nnn/* entries.

Identd is another tool to look at for example source code..

&gt; I suspect the answer is "no" for a generic solution, and "probably no" for
&gt; most system-specific solutions.

The answer isn't necessarily unique, either.  Fork can let the same socket
be owned by multiple processes, and games with setUID stuff can even make
them be different users.

&gt; If you're writing code for the process in question, of course, you could
&gt; maintain a database of port information somewhere yourself.

This is by far the best solution, of course.

Jon


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00743" HREF="msg00743.html">[MUD-Dev] Question for the list (Semi-OT)</A></STRONG>
<UL><LI><EM>From:</EM> Nathan F Yospe &lt;yospe#hawaii,edu&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00744" HREF="msg00744.html">[MUD-Dev] Re: Question for the list (Semi-OT)</A></STRONG>
<UL><LI><EM>From:</EM> Oliver Jowett &lt;oliver#jowett,manawatu.planet.co.nz&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00754.html">[MUD-Dev] free XML Parser (was Re: clients anyone?...)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00756.html">[MUD-Dev] Re: UBE/high: Re: FW: UBE/high: Re: W IRED: Kilers have more fun</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00744.html">[MUD-Dev] Re: Question for the list (Semi-OT)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00748.html">[MUD-Dev] Re: Question for the list (Semi-OT)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00755"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00755"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>[MUD-Dev] Re: UBE/high: Re: FW: UBE/high: Re: W IRED: Kilers</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00928" HREF="msg00928.html">[MUD-Dev] Re: UBE/high: Re: FW: UBE/high: Re: W IRED: Kilers</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Thu 03 Sep 1998, 15:03 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00756" HREF="msg00756.html">[MUD-Dev] Re: UBE/high: Re: FW: UBE/high: Re: W IRED: Kilers have more fun</A></strong>, 
S. Patrick Gallaty <a href="mailto:patrick#gric,com">patrick#gric,com</a>, Tue 18 Aug 1998, 00:48 GMT
<LI><strong><A NAME="00743" HREF="msg00743.html">[MUD-Dev] Question for the list (Semi-OT)</A></strong>, 
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Sat 15 Aug 1998, 23:27 GMT
<UL>
<LI><strong><A NAME="00744" HREF="msg00744.html">[MUD-Dev] Re: Question for the list (Semi-OT)</A></strong>, 
Oliver Jowett <a href="mailto:oliver#jowett,manawatu.planet.co.nz">oliver#jowett,manawatu.planet.co.nz</a>, Sun 16 Aug 1998, 00:00 GMT
<UL>
<LI><strong><A NAME="00755" HREF="msg00755.html">[MUD-Dev] Re: Question for the list (Semi-OT)</A></strong>, 
Jon Leonard <a href="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</a>, Tue 18 Aug 1998, 00:48 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00748" HREF="msg00748.html">[MUD-Dev] Re: Question for the list (Semi-OT)</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sun 16 Aug 1998, 20:10 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00731" HREF="msg00731.html">[MUD-Dev] RE: UBE/high: Re: W IRED: Kilers have more fun</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Sat 15 Aug 1998, 03:34 GMT
<UL>
<LI><strong><A NAME="00734" HREF="msg00734.html">[MUD-Dev] Re: UBE/high: Re: W IRED: Kilers have more fun</A></strong>, 
Mike Sellers <a href="mailto:mike#bignetwork,com">mike#bignetwork,com</a>, Sat 15 Aug 1998, 08:38 GMT
</LI>
<LI><strong><A NAME="00758" HREF="msg00758.html">[MUD-Dev] Re: UBE/high: Re: W IRED: Kilers have more fun</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Tue 18 Aug 1998, 00:48 GMT
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>