[plug] setuid etc
Russell Steicke
r.steicke at bom.gov.au
Mon Feb 10 21:29:42 WST 2003
On Mon, Feb 10, 2003 at 04:58:07PM +0800, Carl Gherardi wrote:
...
> The EUID set but the api doesn't actually set the UID, so I wrote a little
> program to make sure what was launched had EUID and UID set correctly.
>
> I just wondered whether there was a unix app that did this already.
You said your problem is solved, but in case anyone else is looking for
an answer to this question:
su(1) can do that, but I have no idea what it does with uids on OS X.
$ su root ./uids
Password:
uid=0
euid=0
$
So, with sudo:
$ sudo su root ./uids
uid=0
euid=0
$
--
Russell Steicke
-- Fortune says:
The number of UNIX installations has grown to 10, with more expected.
-- The Unix Programmer's Manual, 2nd Edition, June 1972
More information about the plug
mailing list