Skip to content

How to open files as root user via right click

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 thought on “How to open files as root user via right click”

  1. > 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

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.