• 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: Proper permissions magic sauce to get files owned by me owned by my users?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper permissions magic sauce to get files owned by me owned by my users?


  • Subject: Re: Proper permissions magic sauce to get files owned by me owned by my users?
  • From: Paul Miller <email@hidden>
  • Date: Sun, 20 May 2007 07:37:50 -0500

Stéphane Sudre wrote:
On samedi, mai 19, 2007, at 04:42  AM, Mike wrote:

Just write a postinstall shell script that sets the permissions.

If you don't know in advance what permissions the installed app is expecting on the files, then it's kind of hard to know what permissions you need to set.

As with all installers, the permissions (and owner/group) depends on the location of the application.


If the application is in /Applications, then something different from root:admin (775/664) is probably wrong.

Yeah, it seems that way, but the application is not mine and it seems to be installed with the login users' permissions.


Where is the application supposed to be installed?

/Applications

If you need to change the permissions on some folders that already exists, there is a flag to do so in Apple's package format (see the Info pane if you're running PackageMaker on 10.2, the Settings pane if you're using a 3rd party application).

I tried that, but it only worked on three of the four machines I tested it on. But - the application seems especially picky about the permissions on these files I am installing.


I added a postflight script that changed the ownership of my files to match the application's, and all is well now.


-- Paul Miller | email@hidden | www.fxtech.com | Got Tivo?

_______________________________________________
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


References: 
 >Re: Proper permissions magic sauce to get files owned by me owned by my users? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: Proper permissions magic sauce to get files owned by me owned by my users?
  • Next by Date: Questions about installer plugin
  • Previous by thread: Re: Proper permissions magic sauce to get files owned by me owned by my users?
  • Next by thread: Auto-launch Installer From dmg
  • Index(es):
    • Date
    • Thread