From owner-freebsd-questions Tue Aug 21 18:22:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-94-248-46.mmcable.com [24.94.248.46]) by hub.freebsd.org (Postfix) with SMTP id CDEE237B40C for ; Tue, 21 Aug 2001 18:22:28 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 6343 invoked by uid 100); 22 Aug 2001 01:22:28 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15235.2388.12565.721472@guru.mired.org> Date: Tue, 21 Aug 2001 20:22:28 -0500 To: parv Cc: questions@freebsd.org Subject: Re: looking for _readable_ tfm on real/effective/saved/set u/gid In-Reply-To: <77582972@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG parv types: > this was, on the fateful occasion around Aug 20 21:26 -0400, > sent by Milo Hyson > > On Monday 20 August 2001 05:34 pm, parv wrote: > > > can anybody point me to readable manuals/articles/etc on real/effective > > > uid/gid? > > Here's a link to a simple little explanation that I wrote: > > http://www.cyberlifelabs.com/library/unix/real-vs-effective-uid-gid.html > no it wasn't. quite good enough for me to start understand. > where do the ps options "svgid" and "svuid" (saved gid/uid from > a setgid/setuid executable) figure in in grand scheme of things? Those are the "saved" id. That's initially the same as the real id, and you can always change any of the real/effective/saved id's to any of those three values. As far as I can tell, it's got no other use than allowing you to change the real and effective ids to it, so it's basically bookeeping that's required by the POSIX id manipulation APIs. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message