• About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy Policy
  • Change the purpose of use

Tnhelearning.edu.vn - Various useful general information portal

  • Photo
  • Bio
  • How To
  • Tech

How to Open Apps as Root on Mac

January 27, 2024 by admin Category: How To

You are viewing the article How to Open Apps as Root on Mac  at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.

X

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.

Table of Contents

  • Steps
    • On the admin account
    • On a non-admin account
    • Resovle problem
  • Advice
  • Warning

Steps

On the admin account

Image titled Understand icon

Image titled Understand icon

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/2/2b/Understand-icon.jpg/v4-728px-Understand-icon.jpg”,”bigUrl”:”https:// www.wikihow.com/images/thumb/2/2b/Understand-icon.jpg/v4-728px-Understand-icon.jpg”,”smallWidth”:460,”smallHeight”:259,”bigWidth”:728,” bigHeight”:410,”licensing”:”<div class=”mw-parser-output”></div>”}
Know about the risk. Most graphical applications are not designed for high-level access. Limit yourself to specific tasks that you understand well, or you’ll make data inaccessible, applications crash, or create security holes. [1] X Research Source
Image titled Open Applications With Root Privileges on a Mac Step 2

Image titled Open Applications With Root Privileges on a Mac Step 2

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/d/d0/Open-Applications-With-Root-Privileges-on-a-Mac-Step-2-Version-3.jpg/ v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac-Step-2-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ d/d0/Open-Applications-With-Root-Privileges-on-a-Mac-Step-2-Version-3.jpg/v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac- Step-2-Version-3.jpg”,”smallWidth”:460,”smallHeight”:346,”bigWidth”:728,”bigHeight”:547,”licensing”:”<div class=”mw-parser-output “></div>”}
Open Terminal. Log in to the administrator account on the computer. Go to Applications → Utilities and launch Terminal .

  • The administrator account must have a non-blank password, otherwise Terminal will not allow you root access. [2] X Research Source
Image titled Open Applications With Root Privileges on a Mac Step 3

Image titled Open Applications With Root Privileges on a Mac Step 3

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/d/dd/Open-Applications-With-Root-Privileges-on-a-Mac-Step-3-Version-3.jpg/ v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac-Step-3-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ d/dd/Open-Applications-With-Root-Privileges-on-a-Mac-Step-3-Version-3.jpg/v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac- Step-3-Version-3.jpg”,”smallWidth”:460,”smallHeight”:344,”bigWidth”:728,”bigHeight”:544,”licensing”:”<div class=”mw-parser-output “></div>”}
Try the faster way. The sudo command allows us to launch applications with top-level access, but this requires a path to the executable file in the application package. Most Mac apps, along with many third-party programs, have a similar arrangement of content in their packages, so you should try them out: [3] 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.
READ More:   How to Change Your Age on Xbox Live
Image titled Open Applications With Root Privileges on a Mac Step 4

Image titled Open Applications With Root Privileges on a Mac Step 4

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/2/2e/Open-Applications-With-Root-Privileges-on-a-Mac-Step-4-Version-3.jpg/ v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac-Step-4-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ 2/2e/Open-Applications-With-Root-Privileges-on-a-Mac-Step-4-Version-3.jpg/v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac- Step-4-Version-3.jpg”,”smallWidth”:460,”smallHeight”:344,”bigWidth”:728,”bigHeight”:544,”licensing”:”<div class=”mw-parser-output “></div>”}
Open the contents of the apk. If quick opening doesn’t work, find the app in Finder. Right-click (or Contrp and click) on the application icon and select Show Package Contents from the drop-down menu.
Image titled Open Applications With Root Privileges on a Mac Step 5

Image titled Open Applications With Root Privileges on a Mac Step 5

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/d/d6/Open-Applications-With-Root-Privileges-on-a-Mac-Step-5-Version-3.jpg/ v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac-Step-5-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ d/d6/Open-Applications-With-Root-Privileges-on-a-Mac-Step-5-Version-3.jpg/v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac- Step-5-Version-3.jpg”,”smallWidth”:460,”smallHeight”:347,”bigWidth”:728,”bigHeight”:549,”licensing”:”<div class=”mw-parser-output “></div>”}
Find the executable file. You will see one or more folders inside the application. Look for the executable in the directory. This file is usually located in the path /Contents/MacOS.

  • 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.
Image titled Open Applications With Root Privileges on a Mac Step 6

Image titled Open Applications With Root Privileges on a Mac Step 6

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/a/a7/Open-Applications-With-Root-Privileges-on-a-Mac-Step-6-Version-3.jpg/ v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac-Step-6-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ a/a7/Open-Applications-With-Root-Privileges-on-a-Mac-Step-6-Version-3.jpg/v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac- Step-6-Version-3.jpg”,”smallWidth”:460,”smallHeight”:343,”bigWidth”:728,”bigHeight”:543,”licensing”:”<div class=”mw-parser-output “></div>”}
Enter the sudo command into Terminal. Type sudo followed by a space. Do not enter immediately.
Image titled Open Applications With Root Privileges on a Mac Step 7

Image titled Open Applications With Root Privileges on a Mac Step 7

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/d/dc/Open-Applications-With-Root-Privileges-on-a-Mac-Step-7-Version-3.jpg/ v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac-Step-7-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ d/dc/Open-Applications-With-Root-Privileges-on-a-Mac-Step-7-Version-3.jpg/v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac- Step-7-Version-3.jpg”,”smallWidth”:460,”smallHeight”:344,”bigWidth”:728,”bigHeight”:545,”licensing”:”<div class=”mw-parser-output “></div>”}
Drag the batch file and drop it into the Terminal command line. The path to the executable is automatically inserted.
Image titled Open Applications With Root Privileges on a Mac Step 8

Image titled Open Applications With Root Privileges on a Mac Step 8

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/b2/Open-Applications-With-Root-Privileges-on-a-Mac-Step-8-Version-2.jpg/ v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac-Step-8-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ b/b2/Open-Applications-With-Root-Privileges-on-a-Mac-Step-8-Version-2.jpg/v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac- Step-8-Version-2.jpg”,”smallWidth”:460,”smallHeight”:342,”bigWidth”:728,”bigHeight”:541,”licensing”:”<div class=”mw-parser-output “></div>”}
Confirm the command with a password. Press ⏎ Return . Enter the administrator account password you used to log in, press ⏎ Return again. The app will launch with premium access.

On a non-admin account

Image titled Open Applications With Root Privileges on a Mac Step 9

Image titled Open Applications With Root Privileges on a Mac Step 9

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/a/a1/Open-Applications-With-Root-Privileges-on-a-Mac-Step-9-Version-2.jpg/ v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac-Step-9-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ a/a1/Open-Applications-With-Root-Privileges-on-a-Mac-Step-9-Version-2.jpg/v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac- Step-9-Version-2.jpg”,”smallWidth”:460,”smallHeight”:346,”bigWidth”:728,”bigHeight”:547,”licensing”:”<div class=”mw-parser-output “></div>”}
Open Terminal with a non-admin account. Many administrators prefer to work on a regular user account to limit the possibility of bugs or malware attacks. [4] X Research Resources This method still requires an administrator password, but allows you to gain temporary super access without switching accounts. To get started, open a Terminal window.
Image titled Open Applications With Root Privileges on a Mac Step 10

Image titled Open Applications With Root Privileges on a Mac Step 10

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/7/7e/Open-Applications-With-Root-Privileges-on-a-Mac-Step-10-Version-2.jpg/ v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac-Step-10-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ 7/7e/Open-Applications-With-Root-Privileges-on-a-Mac-Step-10-Version-2.jpg/v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac- Step-10-Version-2.jpg”,”smallWidth”:460,”smallHeight”:346,”bigWidth”:728,”bigHeight”:548,”licensing”:”<div class=”mw-parser-output “></div>”}
Switch to administrator rights on Terminal. Enter the command su – followed by a space and the computer’s administrator account username. Enter the password of this administrator account. Then you will act as that user.

  • 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
READ More:   How to Send Anonymous Emails
Image titled Open Applications With Root Privileges on a Mac Step 11

Image titled Open Applications With Root Privileges on a Mac Step 11

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/1/19/Open-Applications-With-Root-Privileges-on-a-Mac-Step-11-Version-2.jpg/ v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac-Step-11-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ 1/19/Open-Applications-With-Root-Privileges-on-a-Mac-Step-11-Version-2.jpg/v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac- Step-11-Version-2.jpg”,”smallWidth”:460,”smallHeight”:343,”bigWidth”:728,”bigHeight”:543,”licensing”:”<div class=”mw-parser-output “></div>”}
Open the application with the sudo command. The most common practice is to type sudo ” file path from hard drive to application .app/Contents/MacOS/ application name “ . If this doesn’t work, or you need more guidance, see the instructions for using an administrator account above.
Image titled Open Applications With Root Privileges on a Mac Step 12

Image titled Open Applications With Root Privileges on a Mac Step 12

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/f/fd/Open-Applications-With-Root-Privileges-on-a-Mac-Step-12-Version-2.jpg/ v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac-Step-12-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ f/fd/Open-Applications-With-Root-Privileges-on-a-Mac-Step-12-Version-2.jpg/v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac- Step-12-Version-2.jpg”,”smallWidth”:460,”smallHeight”:344,”bigWidth”:728,”bigHeight”:545,”licensing”:”<div class=”mw-parser-output “></div>”}
Back to your account. After you complete the tasks that require root privileges, type exit on the Terminal. This command will exit the administrator account and return to your regular account.

Resovle problem

Image titled Open Applications With Root Privileges on a Mac Step 13

Image titled Open Applications With Root Privileges on a Mac Step 13

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/0/08/Open-Applications-With-Root-Privileges-on-a-Mac-Step-13-Version-2.jpg/ v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac-Step-13-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ 0/08/Open-Applications-With-Root-Privileges-on-a-Mac-Step-13-Version-2.jpg/v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac- Step-13-Version-2.jpg”,”smallWidth”:460,”smallHeight”:344,”bigWidth”:728,”bigHeight”:545,”licensing”:”<div class=”mw-parser-output “></div>”}
Disable System Integrity Protection (SIP). This feature (introduced on Mac OS 10.11 El Capitan) will limit access to important data even to advanced users. [6] X Research Source If you can’t make the changes you want, disable SIP. Note that the risk for this method is very high. You should only apply this if you feel confident in your abilities and remember that if something goes wrong, the computer will be wiped out or even rendered inoperable: [7] X Research Source

  • 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.
  • Image titled Open Applications With Root Privileges on a Mac Step 14

    Image titled Open Applications With Root Privileges on a Mac Step 14

    {“smallUrl”:”https://www.wikihow.com/images_en/thumb/4/47/Open-Applications-With-Root-Privileges-on-a-Mac-Step-14-Version-2.jpg/ v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac-Step-14-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/ 4/47/Open-Applications-With-Root-Privileges-on-a-Mac-Step-14-Version-2.jpg/v4-728px-Open-Applications-With-Root-Privileges-on-a-Mac- Step-14-Version-2.jpg”,”smallWidth”:460,”smallHeight”:344,”bigWidth”:728,”bigHeight”:544,”licensing”:”<div class=”mw-parser-output “></div>”}
    Use nano instead of a graphical text editor. This option will make it safer and more reliable to edit configuration files with a text editor right on Terminal. Nano is the simple option available by default. To use this feature with super access, simply type sudo nano , followed by a space and the path to the text document. You can then edit the document right in Terminal. When finished editing, press Contrp + O to save and then press Contrp + X to exit nano.

    • 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
    READ More:   How to Change Name in Skype
  • 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.
    X

    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 Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.

    Related Search:

    Related Posts

    How to Create Curved Text in Photoshop
    How to fall asleep faster
    How to Install FBReader to Read eBooks

    Category: How To

    Previous Post: « What is VNeID? Instructions on how to download and install VNeID application
    Next Post: What is Ke Do in 2023? Good or bad? How to worship stars standard »

    Copyright © 2025 · Tnhelearning.edu.vn - Useful Knowledge