View Full Version : Using Nautilus with root permission
bryan4134
September 13th, 2006, 10:29 PM
Simple question I think. I want to copy files to /usr/share/themes using Nautilus rather than terminal - I am unable to as this requires root user permissions. Is there a way to do this or can it only be done in the terminal mode?
catlett
September 13th, 2006, 10:47 PM
Open a terminal and enter gksudo nautilusThis will open nautilus as root. Then you can do 2 things.
1. You can drag and drop files that belong to root. You may have to open another terminal and enter gksudo nautilus again to get 2 root nautilus going. That way you can open 1` to one folder and the other to another folder and then drag and drop files from one to the other.
2. You can now go to any folder and change it's permissions so you can open it's files or drag and drop it's contents when you are a user. Just right click on the folder to bring up the options menu. Then select the 'permissions' tab. You can then check of the tabs for 'others' or 'group'. If you are the only one using your computer and you want full access, you can check them all off. If you don't want other people to have access, be selective. Also don't change the permisions on system files like root and usr. They need to be root.
xyz
September 13th, 2006, 11:04 PM
I like that one,too from the Dapper Guide:
gksudo gedit /usr/share/applications/Nautilus-root.desktop
Insert those lines into the file:
[Desktop Entry]
Name=File Browser (Root)
Comment=Browse the filesystem with the file manager
Exec=gksudo "nautilus --browser %U"
Icon=file-manager
Terminal=false
Type=Application
Categories=Application;System;
Of course, save the file and go to: Applications -> System Tools -> File Browser (Root)
I can't get my hands on them right now but some member(s?) wrote some nice right-click-on-the-file scripts and "open as root", "gedit as root","root-nautilus-here".
I'll try to locate them on the site when I have more time.
xyz
September 13th, 2006, 11:10 PM
Found one:
how to open files as root user via right click
Insert the following lines into the new file
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo "gnome-open $uri" &
done
Save the file and make it executable:
chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root
Right click on file -> Scripts -> Open as root
Might come in handy,too!
Dapper Guide.
caimex
September 14th, 2006, 12:12 AM
I can't get my hands on them right now but some member(s?) wrote some nice right-click-on-the-file scripts and "open as root", "gedit as root","root-nautilus-here".
I'll try to locate them on the site when I have more time.
I have those nautilus scripts installed. You can get them easily with automatix, one of the items in the list is "nautilus scripts" or something similar.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.