How to open files as root user via right click?
Posted on November 24, 2007
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!
-
gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ root
- Insert the following lines into the new file.
-
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do gnome-sudo "gnome-open $uri" & done
- Save it.
-
chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root
-
Right click on file -> Scripts -> Open as root
- Restart your computer to make sure it's working.
Enjoy!
Possibly Related Posts:
- Argument list too long
- RSS Feed Submissions
- Geo Positions
- Interesting about Google Suggest
- Setup a Linux Highly Availability NFS servers
Comments
Leave a Reply