• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: problem while installation...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >problem while installation... (From: "Amit Jain" <email@hidden>)

  • Prev by Date: Re: Need help with ODBC/iODBC and MySQL
  • Next by Date: Re: NSURLConnection vs WebKit
  • Previous by thread: Re: problem while installation...
  • Next by thread: Running Apple Event loop in unit tests
  • Index(es):
    • Date
    • Thread