How to open files as root user via right click?

Posted on November 24, 2007

advertisement

The following tips explains "How to open files as root user via right click" when browsing their file system using nautilus. Personally I used Ubuntu Gusty and tested OK!

  1. gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ root
  2. Insert the following lines into the new file.
  3. for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do 	gnome-sudo "gnome-open $uri" & done
  4. Save it.
  5. chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root
  6. Right click on file -> Scripts -> Open as root
  7. Restart your computer to make sure it's working.

Enjoy!

Possibly Related Posts:


Comments

Leave a Reply




Planet Malaysia

  • Follow us on Twitter


  • web www.planetmy.com