best_hosting

Tuesday, August 18, 2009

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 comments:

lefty.crupps on August 20, 2009 5:04 AM said...

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

 

Linux Tips Copyright © 2010 Dipin Krishna @ Linuxense