Перейти к основному содержанию
/
Мой рабочий стол для верстки руководств

Получите быстрый доступ к руководствам, запчастям и ответам касательно ваших устройств

How to Open an App as Root on a Mac

How to Open an App as Root on a Mac

Robert K

Robert K и еще один участник

Последнее обновление August 24, 2024

5 - 30 минут
Средне
Руководство, предоставленное сообществом
  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.

4 человек успешно провели ремонт по этому руководству.

Robert K

Участник с: 12/31/21

636 Репутация

Автор 2 руководств

Команду

Kid fixers Участник Kid fixers

Community

184 членов

Автор 256 руководств

Один комментарий

Hi Robert,
I searched for executing with root-permissions, because an app can't get access to read USB-devices.
the log of the app reads as:

LIBUSB: warning [darwin_detach_kernel_driver] USB device capture requires either an entitlement (com.apple.vm.device-access) or root privilege
Error: 2] failed to claim USB interface: -3 LIBUSB_ERROR_ACCESS (Access denied (insufficient permissions))

[14:08:27.487 Camera Error: 2] failed to open transport: 1.1.2-1.1-054c.0ccc

so I thought executing with your method might help..
but it doesn't

Any tipps would be greatly appreciated

Markus

Markus Wiegand - Ответить

Добавить комментарий

Статистика просмотров:

За последние 24 час(ов): 42

За последние 7 дней: 284

За последние 30 дней: 853

За всё время: 16,954