メインコンテンツにスキップ

How to Open an App as Root on a Mac

必要な工具と部品

  1. How to Open an App as Root on a Mac, Disclaimer and Risks: 手順 1、 1の画像 1
    • Most graphical applications are not designed for root access.

    • Limit yourself to specific tasks you need to execute, understand well, or you can experiment (if you don't care about your data).

    • One wrong move can cost you: inaccessible files, application crashes, or security vulnerabilities.

    • You will need an administrator account!

  2. How to Open an App as Root on a Mac, Open Terminal: 手順 2、 1の画像 1
    • Open Terminal.

    • Log into an administrator account on your computer. Go to Applications → Utilities and launch Terminal.

    • This administrator account must have a non-blank password, or Terminal will not allow you to access root privileges.

  3. How to Open an App as Root on a Mac, Open the app's package contents: 手順 3、 1の画像 1
    • Open the application's package contents.

    • Locate the application in Finder. Right-click (or Control-click) its icon and select Show Package Contents from the drop-down menu.

  4. How to Open an App as Root on a Mac, Find the EXEC file: 手順 4、 1の画像 1
    • You should now see one or more folders inside the application. Locate the executable file inside this folder.

    • This is usually inside /Contents/MacOS.

    • The executable often has the same name as the application, but it could have another name, such as "run.sh."

    • The executable file icon is usually a black square with the word "exec" in small letters.

  5. How to Open an App as Root on a Mac, Type sudo into terminal: 手順 5、 1の画像 1
    • Type sudo followed by a space. Do not enter the command yet.

    • Make sure to enter a space after sudo

    • Do not enter the command until the next step.

  6. How to Open an App as Root on a Mac, Drag the EXEC file: 手順 6、 1の画像 1
    • Drag the executable file into the Terminal line.

    • This should automatically insert the file path to the executable file.

    • You will need to enter your password to complete the operation.

    • When you type your password, it will not show! This is for security purposes. Be assured, your password is being registered even if nothing is being displayed on screen.

終わりに

If you have questions, please leave a comment below. I will try to get to as many questions as I can.

2 の人々がこのガイドを完成させました。

作成者

1人の作成者と共同作成されました。

Robert K

メンバー登録日: 12/31/21

469 ポイント

2のガイドは作成済み

チーム

Kid fixers Kid fixers人のメンバー

Community

156 メンバー

292のガイドは作成済み

0 件のコメント

コメントを追加

統計データ:

過去 24時間: 32

過去 7 日: 216

過去 30 日: 753

今までの合計 6,778