How to add "Open as Administrator " option on Ubuntu :
Today im gonna show you in this simple tutorial how to add ‘Open As Root’ or ‘Open As Administrator’ option to context menu.Most users like to open files/folders as root directly from nautilus to do something with file-system and Nautilus offers ways to do that via extension or script.
There is many ways to add this option on Nautilus, but in this tutorial i picked up tree ways that works perfectly on Ubuntu 14.10/14.04/13.10/13.04/12.10/12.04 ,so let's start .
* Way n°1 :
- Script from Noobslab PPa :
For : Ubuntu 14.10/14.04/13.10/13.04/12.10/12.04/Linux Mint 17/16/15/14/13
Copy / Paste the cmds bellow on a Terminal :
After installing the script you should restart Nautilus :
For : previous Nautilus version ( Nautilus 3.4.x ) :
Now you could use "Open as Administrator" on Nautilus :
* Way n°2 :
- Add the script manually :
In this way all you need to do is to copy / paste the script code bellow on gedit or any other text editor on Ubuntu. But before starting you should lookup for gksu ( Graphical Frontend to su ),gksu allows graphical programs to ask a user’s password to run program as root / administrator.
Open Ubuntu Software Center and search for gksu ( install it ) :
* Script code :
Or download the script from here : Open as root
Now after getting the script code you should copy it and paste it in this directory :
USER Home -> .local -> share -> nautilus -> scripts.
* ( Press Ctrl+H to view hidden files & folders )
Now open a terminal window and copy/paste the cmds bellow to make the script file executable :
And restart Nautilus with :
* Way n°3 :
- Using "libnautilus-gksu.so" script :
In this way we gonna get the script and install it on two steps :
1)- Open a terminal window and copy/paste the cmds bellow :
2)- Copy the file to " /usr/lib/nautilus/extensions-3.0 ":
VIDEO TUTO :
That's all enjoy ;)