How to open files as root via a right click
:: Start :: Technology :: Computer & Internet
Page 1 of 1
How to open files as root via a right click
Adding a contextual menu item to open as root:
Open a terminal and type sudo su
Then type the following:
gedit .gnome2/nautilus-scripts/Open\ as\ root
Now add the following to the open document and save the file:
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo "gnome-open $uri" &
done
Back at the terminal, type:
sudo chmod +x .gnome2/nautilus-scripts/Open\ as\ root
All set, now when you want to open a file as root, simply right click the file and select Scripts-> Open as root
Note: You may need to restart to see the changes!
article by http://www.pendrivelinux.com/how-to-open-files-as-root-via-a-right-click/
Open a terminal and type sudo su
Then type the following:
gedit .gnome2/nautilus-scripts/Open\ as\ root
Now add the following to the open document and save the file:
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo "gnome-open $uri" &
done
Back at the terminal, type:
sudo chmod +x .gnome2/nautilus-scripts/Open\ as\ root
All set, now when you want to open a file as root, simply right click the file and select Scripts-> Open as root
Note: You may need to restart to see the changes!
article by http://www.pendrivelinux.com/how-to-open-files-as-root-via-a-right-click/
sunt- Number of posts : 145
Registration date : 2008-11-14
Similar topics
» Saving youtube videos as music files or video files
» Open browser in mobile emulated mode
» How to Un-Register DLLs files.
» keyboard shortcut for right click
» Start DVD with VLC when double click dvd drive
» Open browser in mobile emulated mode
» How to Un-Register DLLs files.
» keyboard shortcut for right click
» Start DVD with VLC when double click dvd drive
:: Start :: Technology :: Computer & Internet
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum