Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.unix.wizards Subject: Re: Authenticating Unix Domain sockets. Message-ID: <11225@jpl-devvax.JPL.NASA.GOV> Date: 29 Jan 91 23:11:50 GMT References: <1991Jan29.063539.2169@objy.com> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 13 In article <1991Jan29.063539.2169@objy.com> peter@objy.com writes: : What I would like is a guaranteed way of finding out the uid of a process : that just connected to me using local (same machine) IPC. What do you mean by "the" uid? Given that the other end of a socket may be open multiple times by multiple processes, there's no guarantee of uniqueness. To answer your question, apart from using a secure protocol or grodying about in the kernel like fuser or ofiles, there isn't a way. Larry Wall lwall@jpl-devvax.jpl.nasa.gov