How to open files as root user via right click

On August 18, 2009, in Uncategorized, by Dipin Krishna

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
 

1 Response » to “How to open files as root user via right click”

  1. lefty.crupps says:

    > 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?

Leave a Reply

*

Search