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: Uli Kusterer <email@hidden>
- Date: Sun, 9 Apr 2006 14:18:31 +0200
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