• 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: Mike <email@hidden>
  • Date: Wed, 07 Feb 2007 12:07:41 -0700

Don't rely on the permissions of the helper tool file - they may not be what you expect at runtime.

Your app needs to install a copy of the tool from a template contained in your app, set the correct permisions and other UNIX settings on the helper tool file, then setup a secure environment from which to execute the tool.

In addition, you can't rely on the location from which the tool is run: the user may move the application y copying it which might also change the permissions/settings on the helper tool file. The app itself needs to be able to set the tool up for execution regardless of where it is run from.

Mike

Amit Jain wrote:
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.Everything works 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 . Actually i am using a postflight script for launching the helperApp and the data inside it is as follows:
=========
#!/bin/sh

"$2/mainApp.app/Contents/Resources/helperApp.app/Contents/MacOS/helperApp"&

exit 0
=========
"$2" is for current location of the mainApp and "&" is for background process (as my helperApp is background process)
One more clue i wud give u may be it helps u in understanding my problem:
While making the package i give the permissions as USER=root and GROUP=admin but when i install the application at a location other then root like /Users/Movies..then the permissions are not USER=system and group = admin but they are USER=user_name and group = admin.
Sorry for such a long query but i had to write it .
__________________
Regards..
@mit..

_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: problem while installation...
      • From: Frederik Seiffert <email@hidden>
References: 
 >problem while installation... (From: "Amit Jain" <email@hidden>)

  • Prev by Date: Re: Default button
  • Next by Date: Re: problem while installation...
  • Previous by thread: problem while installation...
  • Next by thread: Re: problem while installation...
  • Index(es):
    • Date
    • Thread