LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Temporary root-access in Nautilus? (https://www.linuxquestions.org/questions/ubuntu-63/temporary-root-access-in-nautilus-464399/)

General 07-15-2006 05:32 PM

Temporary root-access in Nautilus?
 
Is there some way to gain temporary root-access while in Nautilus, so that specific tasks that need root log-in can be performed, such as changing permissions of files? (under Ubuntu)

fragos 07-15-2006 07:44 PM

Nautilus scripts are your answer. Create a file "Open as Administrator" with the following 3 lines.

for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo "gnome-open $uri" &
done

Place the file in folder ~/.gnome2/nautilus-scripts

Open Naultilus and right click on a file or directory hover "Scripts" and select "Open as Administrator". The item will be opened as root. You can also place any bash script in that folder as well. I have one that opens a terminal with the directory set to that of the file right clicked.

-=Graz=- 07-15-2006 09:19 PM

just typing $sudo nautilus - in a terminal window should work on the fly as well :)

aysiu 07-15-2006 11:34 PM

Alt-F2
Code:

gksudo nautilus


All times are GMT -5. The time now is 01:48 PM.