LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 07-15-2006, 05:32 PM   #1
General
Member
 
Registered: Aug 2005
Distribution: Debian 6.0
Posts: 465

Rep: Reputation: 31
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)

Last edited by General; 07-15-2006 at 05:46 PM.
 
Old 07-15-2006, 07:44 PM   #2
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
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.
 
Old 07-15-2006, 09:19 PM   #3
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 356

Rep: Reputation: 31
just typing $sudo nautilus - in a terminal window should work on the fly as well
 
Old 07-15-2006, 11:34 PM   #4
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 66
Alt-F2
Code:
gksudo nautilus
 
  


Reply

Tags
nautilus, root


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't access the network through nautilus mcgoon Linux - General 1 05-16-2006 10:03 PM
Nautilus Can't Access WebDAV Folder lnxconvrt Ubuntu 2 07-13-2005 09:30 AM
Nautilus SMB access to WinXP rje_NC Slackware 0 02-25-2005 03:45 PM
temporary root status? e1000 Linux - Newbie 2 10-06-2003 11:28 AM
Can't access windows directories through Nautilus mystictoaster Linux - Newbie 2 07-16-2003 05:28 AM


All times are GMT -5. The time now is 11:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration