Date: Wed, 29 May 2002 12:09:53 +1200 From: Jonathan Chen <jonc@chen.org.nz> To: Daniel Blankensteiner <db@traceroute.dk> Cc: freebsd-questions@freebsd.org Subject: Re: I386<<FreeBSD 4.5<<getlogin() Message-ID: <20020529120953.A61017@grimoire.chen.org.nz> In-Reply-To: <00f501c20696$f970de60$6800a8c0@rafter>; from db@traceroute.dk on Wed, May 29, 2002 at 12:28:21AM %2B0200 References: <005401c2068a$35c1ebf0$6800a8c0@rafter> <20020529100157.B60716@grimoire.chen.org.nz> <00f501c20696$f970de60$6800a8c0@rafter>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 29, 2002 at 12:28:21AM +0200, Daniel Blankensteiner wrote: > But why does getlogin() give me "root", when I have su'ed to testuser? Because you logged in as "root". getuid() will return "testuser". > And what is the difference between a real and effective user? real and effective user ids may be different, possibly when you run setuid programs. Dunno if this helps what you're trying to achieve. -- Jonathan Chen <jonc@chen.org.nz> ---------------------------------------------------------------------- "Beer. Now there's a temporary solution." - Homer Simpson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020529120953.A61017>