[plug] setuid etc

Carl Gherardi C.Gherardi at curtin.edu.au
Mon Feb 10 16:58:07 WST 2003


Apologies for Outlook munging of replies.

> From: Russell Steicke [mailto:r.steicke at bom.gov.au]
> 
> On Mon, Feb 10, 2003 at 03:58:44PM +0800, Carl Gherardi wrote:
> > 'lo all,
> > 
> > I'm having a battle with a program at the moment.
> > 
> > I have a program that looks very much like:
> ...
> > This program makes sure that the actual uid of the program runs as root
and
> > not just the effective uid.
> 
> Do you need this?  From the sudo(8) man page:
> 
I've just had the solution to my problem come up so all is good but anyway.

Nope, i've come up with a better contrived example now...

For starters this problem is actually under OS X, but the pricipals should
be the same.

As with gnome there is an api to allow a user to authenticate as root before
the program runs. I've seen this with various apps under redhat and ximian.

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.

*Wishes he had posted this first time around...*

Cheers

Carl



More information about the plug mailing list