How to Add “Open As Root” to Ubuntu’s Right-Click Menu
To open Nautilus (Ubuntu’s default file manager) as root, the easiest route is through the command line — but this can get annoying when you have to do it often. Fortunately, you can save yourself time in the future by adding an “Open as Root” item to the right-click context menu.
Oh Nautilus, why can't I open you as root?
— Harinder (@lightyoruichi) August 25, 2011
To install it, open the Terminal (keyboard shortcut Ctrl + Alt + T), paste the following line of code, and hit Enter. This adds the PPA repository to your system:
sudo add-apt-repository ppa:noobslab/apps
Next, update your list of available packages by typing:
sudo apt-get update
Finally, install the actual script with:
sudo apt-get install open-as-administrator
Now all you have to do is relaunch Nautilus. The next time you open the context menu for any file or folder, you’ll see a Scripts submenu with an Open_as_Administrator option. In some versions of Ubuntu, the option will be in the main menu and not in a submenu.
This works for Ubuntu 12.04 to 15.10 and Linux Mint 13 to 17.
Do you have such a tweak handy to get root access to Nautilus? Or do you prefer to go through the terminal every time? Tell us!
Image Credit: Hands on laptop with “ROOT ACCESS” words on keyboard buttons by mozakim via Shutterstock
Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.