There are some packages that can be properly installed only with administrative rights. If you are like me, and run your account with regular rights, you might face some installation failures with poorly build packages.
For example, you might encounter error messages like these:
Checking the console will reveal a permission problem:
Macos Run App As Admin Password
Fortunately, Apple designed the .pkg packages to enable authorisation requests for such packages, and changing this setting is quite easy, requiring only to edit a text file.
Installing applications on macOS and OS X computers is easy to do when deploying the apps as packages through the Terminal using the Installer command for quiet deployments across your network. The Mac OS X Terminal allows you to control your computer without a graphical interface. This includes creating new users, changing passwords and even granting permissions on any of your office Macs. You can change a colleague's user account - or your own - to an administrator account that allows more control over the computer. Well I haven’t found a way to get this work in Mac OS X Yosemite so I’m going to assume it doesn’t work anymore. One other possibility is to boot the Mac to Single User Mode and use the Directory Services Command Line tool to join your non-admin account to the administrator group. When the login screen appears, select a user with administrator privileges, type the appropriate password, and then press Return. Note: If your computer is set to automatically log you in each time you start it, but you want to log in as another user, hold Shift when the Mac OS X Startup Screen appears and release it when the login screen appears.
The steps to fix this are listed below.
Show Package Content
The first step is to open the package. Right click on the .pkg package and select Show Package Content. You will get something like this:
Edit the Info.plist
Mac Install App As Admin
Collins dictionary download. Open the Info.plist file, either with a text editor or, if you have the developer SDK installed, with the Property List Editor.
Mac os automator app. https://renewah233.weebly.com/blog/uninstalling-apps-on-mac-pro. Locate the IFPkgFlagAuthorizationAction key
Mac Sudo
If you are using the Property List Editor, you will see something like this:
Change the value from NoAuthorization to AdminAuthorization
Save the file and close the editor.
Run the install
Mac Open As Administrator
Click on the .pkg package and follow the instructions. At a certain point in time the installer will ask for administrative credentials. Provide them and the installation will complete properly.