Showing posts with label open as root. Show all posts
Showing posts with label open as root. Show all posts
It must be said that there are certain features of Windows that I think 'why on earth doesn't Ubuntu employ such methods!'
This is a great little way of editing files as root using the desktop. This saves having to login as root and navigating a text editor! More windows less linux
Step 1
Open a terminal and type:
sudo su
Step 2
Then type:
gedit .gnome2/nautilus-scripts/Open\ as\ root
Step 3
Now add the following three lines of code to the file:
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo "gnome-open $uri" &
done
Step 4
Go back to the terminal and type:
sudo chmod +x .gnome2/nautilus-scripts/Open\ as\ root
Step 5
Reboot the machine and now when you right click on a document and goto scripts, there is the option to open the document as root!
*note that there are certain security implications with this method see this link
This is a great little way of editing files as root using the desktop. This saves having to login as root and navigating a text editor! More windows less linux
Step 1
Open a terminal and type:
sudo su
Step 2
Then type:
gedit .gnome2/nautilus-scripts/Open\ as\ root
Step 3
Now add the following three lines of code to the file:
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo "gnome-open $uri" &
done
Step 4
Go back to the terminal and type:
sudo chmod +x .gnome2/nautilus-scripts/Open\ as\ root
Step 5
Reboot the machine and now when you right click on a document and goto scripts, there is the option to open the document as root!
*note that there are certain security implications with this method see this link
Powered by ScribeFire.
Labels: easy ubuntu, edubuntu, open as root, right click, root, security, sudo, user
Subscribe to:
Posts (Atom)