Re: /Library/Receipts, installing a pkg without admin authorization?
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=kP2s+S9io3Nlutga64U45cY3FPCtXVY/n3umLl6S0Qkq8RgYw7I4Zu7bEx8nzOz74K5y1fWMINPdEeNhk+8sP3i7uRh6rAg3r4A26nLfAYf0OGSW4Vd5b/D/YiSp06qUkmAxVllkePAEKg/WoV+U0CftzndfvJe9iO1IpRTsUTI= ; --- Peter Bierman <bierman@apple.com> wrote:
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
I am installing the app to a subdirectory within my home directory. It seems like in this case, installer should place the receipt in ~/Library/Receipts/ as you indicated? Are there other installer properties I need to configure for this to work? Fazan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Fazan