Prior to Mountain Lion, I was able to install packages with
/usr/sbin/installer as an Admin user. However, with Mountain Lion, when I try running
installer -pkg blah.pkg -target /
I get the error
installer: Must be run as root to install this package.
I've monkeyed with the
IFPkgFlagAuthorizationAction variable in the package's info.plist, setting it to
AdminAuthorization and even
UserAuthorization, but that doesn't seem to have any effect.
I can install with sudo to actually run as
root, but the software (correctly) expects me to install as a non-
root users and thus doesn't work.
If I use the GUI Installer.app on the same package (even without modification to
IFPkgFlagAuthorizationAction), I am prompted for an Admin—not
root—password and everything works as expected.
How do I get the behavior of the GUI tool from the command line?