How Do I Run a Program as Root in Ubuntu?
Contents How Do I Open a Program as Root in Ubuntu? If You Want the App to Always Run as Root Pin the Application to the Launcher as Normal. Locate the...
Contents
How do I open a program as root in Ubuntu?
If you want the app to always run as root
- Pin the application to the launcher as normal.
- Locate the applications . desktop file which will be in either: …
- Open with gedit: gksudo gedit /usr/share/applications/APPNAME.desktop.
- Then change the line Exec=APP_COMMAND. to Exec=gksudo -k -u root APP_COMMAND.
- Save.
Must Read
How can you run an executable as root?
First, open the Terminal, then mark the file as executable with the chmod command. Now you can execute the file in the terminal. If an error message including a problem such as ‘permission denied’ appears, use sudo to run it as root (admin). Be careful, sudo allows you to make critical changes to your system.