This simple and brief tutorial is going to show you how to add ‘Open As Root’ to Nautilus context menu in Ubuntu 13.04 Raring.
The Nautilus has upgraded to 3.6.x in Ubuntu 13.04, so that it’s a little different. Now the Nautilus scripts should be placed under “/home/$USER/.local/share/nautilus/scripts/”
1. Copy the script and paste it into a new file named Open As Root. Put the file under “/home/$USER/.local/share/nautilus/scripts/” folder. Press “Ctrl+H” to show the hidden file folder .local.
2. Right click on the script and go to ‘Properties’, check “Allow executing file as program” at ‘Permissions’ tab.
3. Restart Nautilus by running this command in terminal (Ctrl+Alt+T):
After that, you can see the ‘Open As Root’ option in Nautilus context menu:
It’ll prompt you to input root account password which is not enabled by default. To enable and set root password, run this command (Ctrl+Alt+T):
sudo passwd root
Then use this password to get pass the authentication window.