How to Run GUI Apps as root in Mac OS X Feb 6, 2013 - 10 Comments Those familiar with the command line know that running things with super user privileges is typically just a matter of using the sudo command. Are you an administrator of your computer? When you say “ I created another user account for using my laptop “, is it the standard account which you have created? I would suggest you to try to install the application/software by logging in to an administrator account and check if you are getting any prompt.
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:
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.
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.plistInstall Iphone Apps On Mac
Open the Info.plist file, either with a text editor or, if you have the developer SDK installed, with the Property List Editor.
Locate the IFPkgFlagAuthorizationAction key Install app on mac os.
If you are using the Property List Editor, you will see something like this:
Change the value from NoAuthorization to AdminAuthorization Iphone photos not syncing to mac.
Save the file and close the editor.
Run the install
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.
The user account named ”root” is a superuser with read and write privileges to more areas of the system, including files in other macOS user accounts. The root user is disabled by default. If you can log in to your Mac with an administrator account, you can enable the root user, then log in as the root user to complete your task.
The root user account is not intended for routine use. Its privileges allow changes to files that are required by your Mac. To undo such changes, you might need to reinstall your system software. You should disable the root user after completing your task.
Install App As Admin Macro![]()
It's safer to use the
sudo command in Terminal instead of enabling the root user. To learn about sudo , open the Terminal app and enter man sudo .
Run Mac Apps On WindowsEnable or disable the root user
Can't Install App On MacLog in as the root user
When the root user is enabled, you have the privileges of the root user only while logged in as the root user.
Install App As Admin Mac Pro
Remember to disable the root user after completing your task.
Change the root password
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |