Re: /Library/Receipts, installing a pkg without admin authorization?
Re: /Library/Receipts, installing a pkg without admin authorization?
- Subject: Re: /Library/Receipts, installing a pkg without admin authorization?
- From: Peter Bierman <email@hidden>
- Date: Fri, 17 Feb 2006 15:02:07 -0800
At 2:56 PM -0800 2/17/06, Fazan wrote:
I am creating my own package and currently I don't
do anything in the install that requires admin
authorization. Therefore, I am setting
IFPkgFlagAuthorizationAction to NoAuthorization. When
I install the package as an ordinary user, it appears
to install correctly, but the Installer fails with an
error message: "There were errors installing the
software". When I viewed the installer log, I see an
error message about how it is trying to move an
existing receipt /private/tmp/.<my app name> to
/Library/Receipts/<my app name>. The permissions of
/Library/Receipts are rwxrwxr-x (owned by root), and
since I'm not logged in as an administrator, it makes
sense that it fails.
Does every installer package created with
PackageMaker attempt to write to /Library/Receipts?
If so, does this mean that only administrators can
install packages? Or is there something wrong with
the permissions on my /Library/Receipts directory?
It's not PackageMaker, but any OS X installer package at all. This is
a side effect of us tightening the permissions on /Library/Receipts/
This is usually not a problem, because there's very little software
that can be installed somewhere other than in the home directory
without admin privileges. If your NoAuthorization package is
installed in a homedir, then the receipt should end up in ~/L/R/,
which is not as restrictive.
Where are you installing your software that's not a home dir but
still doesn't require authorization?
-pmb
_______________________________________________
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