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: Paul Forgey <email@hidden>
- Date: Sun, 9 Apr 2006 06:06:55 -0700
No, you need to prove you are administrative. The root privilege is
then used to switch to the desired user.
This is no different than sudo.
On Apr 9, 2006, at 5:18 AM, Uli Kusterer 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?
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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