Re: problem while installation...
Re: problem while installation...
- Subject: Re: problem while installation...
- From: "Tage Borg" <email@hidden>
- Date: Tue, 6 Feb 2007 15:02:46 +0100 (CET)
> Hi All,
> I have developed an application(*mainApp*) which contains an another
> application (*helperApp*-*which shud run with root privilege*) inside its
> resources.Now while building the package i have made it relocatable. And
> actually the helper application needs the root permissions for launching
> so
> i have set its SID and GID bit also before building the
> package.Everythingworks fine when i install the application at
> location /Applications (or any
> root folders) but when i install the application at location like
> /Users/movies (or any location that is in users folder) then the helperApp
> doesnt run with root privilege .
What happens is that when you copy/move the bundle, file permissions are
broken, so you lose the sticky bits. A solution to this problem is
documented in Apple's documentation. In short, what you need to do is to
make your helper application capable of repairing its own permissions.
You should read
<http://developer.apple.com/documentation/Security/Conceptual/authorization_concepts/index.html>
and specifically
<http://developer.apple.com/documentation/Security/Conceptual/authorization_concepts/03authtasks/chapter_3_section_3.html>
--Tage
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden