MacOS – Admin privileges requiring for installing a package build though Packages

macospackage-management

Using osx 10.9 and packages for making package installer.

While installing a package made using Packages in /Applications location on a osx 10.9 machine, installer is asking for Admin password. Even though I had unchecked 'Require admin password for installation' while package making.

So, how to avoid this i.e a non-admin user should install this package. Package should install in /Applications location, so that non-admin user can use the app.

I check this and this

Best Answer

The installer is actually doing the right thing by asking for an admin password. Users without admin rights do not have the ability to write to the /Applications directory on a Mac.

Without knowing more about your installer, I suspect the request for an admin password is coming from Apple's Installer.app, which is the application that your installer is working with to install your application.

Installer.app is detecting that the non-admin account that's running the installation doesn't have admin rights and that /Applications doesn't allow non-admin users to write to it. To resolve the issue, Installer.app is requesting that an admin account authenticate the installation and authorize the needed rights. Otherwise, the installation will just fail.