You will need a text editor compatible for your operating system.
Here are some suggestions:
You can open any Mac application with root privileges, as long as you have an administrator password. As always, do not use root access unless you know what you are doing, as you could cause serious damage to the application or to your computer.
Terminal
. Log into an administrator account on your computer. Go to Applications
→ Utilities
and launch Terminal
.sudo
command lets you launch applications with root access, but it requires the path to the executable file within the application package. Most default Mac applications, as well as many third-party programs, organize the package contents the same way, so it’s worth trying this:Enter 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 password for the administrator account you are currently logged into. Press ⏎ Return
.
If the command works, the application should open with root privileges. If Terminal says “command not found,” continue to the next step.
Open the application’s package contents. If the quick way didn’t work, locate the application in Finder
. Right-click (or Control-click) its icon and select Show Package Contents
from the drop-down menu.
Choose the text editor you are using
Using the Start menu, you have at least two quick ways to start an application as an administrator.
To start an app with admin right using the keyboard shortcut, use these steps:
If you use the search experience, you also have two ways to run apps with administrative permissions.
To open an app as an administrator from the search box, use these steps:
Quick tip: You can also open search directly from the taskbar (if available), or use the Windows key + S keyboard shortcut.
Search keyboard shortcut
To run a program from search with a keyboard shortcut, use these steps:
On Windows 10, you can also start apps elevated from the desktop or taskbar.
To start an app with elevated privileges from the desktop, use these steps:
To run apps elevated from the taskbar, use these steps:
To start a program as an admin user from the Run command, use these steps:
Open Start.
Search for Run and click the top result to open the app.
Quick tip: You can also open the Run command using the Windows key+R keyboard shortcut.
Type the name of the app. For example, explorer.exe.
To launch an app as an administrator from Task Manager, use these steps:
Quick tip: Other alternative ways to open the experience include, right-clicking the taskbar and selecting the Task Manager option. Using the Ctrl + Shift + Esc keyboard shortcut, and using the Ctrl + Alt + Delete shortcut and clicking the Task Manager option.
Type the name of the app.
Check the Create this task with administrator privileges.
File Explorer includes at least two ways to launch apps as an administrator user.
To open app elevated with File Explorer, use these steps:
To run a program as an administrator with the ribbon menu, use these steps:
Quick note: If you click the arrow button, then you can select to launch the app as admin or as a different user.
To run an app elevated from Command Prompt, use these steps:
runas /user:"COMPUTER-NAME\ADMIN-USER" "C:\PATH\TO\PROGRAM.EXE"
In the command, make sure to update the syntax with your computer name and administrator user and with the correct path of the program.
For example, this command start Notepad++ with administrator privileges:
runas /user:"office-pc\[email protected]" "C:\Program Files\Notepad++\notepad++.exe"