Site icon Dipin Krishna

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
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo "gnome-open $uri" &
done

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
Exit mobile version