Follow these steps to open files as root user via right click
gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ root
- Insert the following lines into the new file
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo "gnome-open $uri" &
done
- Save the edited file
Places -> Home -> View -> Show Hidden Files -> .gnome2 -> nautilus-scripts ->
Right click on Open as root -> Properties -> Permissions -> Execute
Right click on file -> Scripts -> Open as root
> How to open files as root user
> via right click
… on Gnome.
This would be a great tool to have for the KDE desktop, do you know how that would be done?