You are viewing the article How to Open Apps as Root on Mac at Lassho.edu.vn you can quickly access the necessary information in the table of contents of the article below.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
There are 7 references cited in this article that you can see at the bottom of the page.
This article has been viewed 9,396 times.
You can open any Mac application with super management (root privileges), as long as you have the administrator password (administrator). As always, don’t use super access unless you know what you’re doing, or you could cause serious problems with the application or the computer.
Steps
On the admin account
- The administrator account must have a non-blank password, otherwise Terminal will not allow you root access. [2] X Research Source
- Type sudo ” file path from hard drive to application .app/Contents/MacOS/ application name “ .
For example, to open iTunes, type sudo “/Applications/iTunes.app/Contents/MacOS/iTunes” and press ⏎ Return . - Enter the administrator account password that you normally log in with. Press ⏎ Return .
- If the command works then the app will open with super access. If Terminal says “command not found”, continue to the next step.
- The executable file usually has the same name as the application, but can also have a different name, such as “run.sh.”
- Executable files usually have a black square icon with a small “exec” inside.
On a non-admin account
- Hyphens in commands are optional, but recommended. It sets the environment and directory variables for this admin user and will limit the possibility of accidental errors. [5] X Research Sources
Resovle problem
- Restart the computer. Hold down ⌘ Command + R after you hear the startup sound to access Recovery Mode.
- Select Utilities from the top menu, then Terminal .
- Enter csrutil disable; reboot into Terminal.
- Let the computer restart as usual. Now you can apply the above steps to open any app as root. Once done, consider re-executing these instructions with enable instead of disable to restore SIP.
- For example, the command sudo nano /etc/hosts will open the hosts file with super access.
- You should make a backup before editing any configuration files. To do this, type sudo cp filepath_of_config_file new_filepath of backup . For example, the command sudo cp /etc/hosts /etc/hosts.backup will create a backup of the hosts file with the name hosts.backup. If you make an error, you can move the misconfigured file with the command sudo mv /etc/hosts /etc/hosts.bad (with the hosts.backup file, for example) and restore the backup with the sudo command cp /etc/hosts.backup /etc/hosts . [8] X Research Sources
Advice
- The double quotes before and after the path are only needed if the path contains spaces.
Warning
- Just one mistake when using super access can wipe out the computer or cause the system to be paralyzed. This risk is even higher on 10.10 and earlier, or on 10.11 when SIP is disabled. You should limit sharing your administrator password to prevent others from taking root privileges.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
There are 7 references cited in this article that you can see at the bottom of the page.
This article has been viewed 9,396 times.
You can open any Mac application with super management (root privileges), as long as you have the administrator password (administrator). As always, don’t use super access unless you know what you’re doing, or you could cause serious problems with the application or the computer.
Thank you for reading this post How to Open Apps as Root on Mac at Lassho.edu.vn You can comment, see more related articles below and hope to help you with interesting information.
Related Search: