Re: Running an application owned by a different user
Re: Running an application owned by a different user
- Subject: Re: Running an application owned by a different user
- From: "Finlay Dobbie" <email@hidden>
- Date: Sun, 9 Apr 2006 13:39:58 +0100
On 09/04/06, Uli Kusterer <email@hidden> wrote:
> Am 09.04.2006 um 08:20 schrieb Paul Forgey:
> > I'd use Authorization Services to become root, then suid to the
> > user you want to. I'm not too familiar with the finer points of
> > Authorization Services, but I know it can spawn executables as root
> > after getting the credentials of a privileged user. That
> > executable could be a resource in your bundle that calls suid () on
> > a desired user and then either exec's the program you want to run
> > or calls Launch Services to do it and then exit.
>
> Just curious: Wouldn't that be even less safe? You need a root
> password instead of just the password of the user you want to become,
> after all?
You do not need "a root password" (that doesn't even make any sense,
there is only one root password) to gain root privileges through the
use of Authorization Services.
If you mean an admin password, then again, you don't necessarily need
an admin password to gain root privileges, if your application is set
up correctly.
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden