Directory creation and permissions
Directory creation and permissions
- Subject: Directory creation and permissions
- From: Dan Spirlock <email@hidden>
- Date: Mon, 22 Feb 2010 11:01:14 -0800
Hello,
I'm using PackageMaker 3.0.3 in OS 10.5. I'm running into a weird issue with our installers and wondered if it is normal behavior. I'm creating a metapacakge that contains several packages. One particular package has its destination set to a path that would result in a directory being created on the target machine during installation, like this:
/Library/Documentation/<CompanyName>/<ProductName>
Where <CompanyName> and <ProductName> contain hardcoded values. What I'm finding is that when the installer is run, and these directories are created in the Documentation folder, the <ProductName> directory has it's owner set to the user id of the user that created the package. Obviously, this user id has no meaning on any machine other than the one that authored the package. The result is that the created directory is inaccessible. The owner is set to "_unknown" and the permissions are rw-----. The actual files installed within the created directory have their permissions set correctly.
I know that I can easily fix this with a postinstall script, but this seems like I'm doing something wrong when authoring the metapackage. I don't see any way to set the permissions of the directory in packagemaker.
Does anyone have any tips on getting this working correctly?
Thanks in advance,
Dan Spirlock
BIAS
http://www.bias-inc.com _______________________________________________
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