Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 31st March 2008, 09:25 PM
Doug_Vitale's Avatar
Doug_Vitale Offline
Registered User
 
Join Date: Jul 2007
Posts: 34
Adding "Edit as Root" to the context menu

How can I insert an "edit as root" option in the right-click context menu when I right-click an editable file? In Ubuntu and PCLinuxOS this option is there by default. Thank you for your help.
__________________
Linux Today | Linux Questions | Linux Forums
Reply With Quote
  #2  
Old 31st March 2008, 10:00 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Which gui interface are you needing it for?

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #3  
Old 1st April 2008, 04:20 PM
Doug_Vitale's Avatar
Doug_Vitale Offline
Registered User
 
Join Date: Jul 2007
Posts: 34
Quote:
Originally Posted by Brian1
Which gui interface are you needing it for?

Brian
For when I browse through folders and files with Konqueror. For instance, when I want to edit a configuration file in /etc. I would like to just right-click on the file and choose "edit as root". Thanks.
__________________
Linux Today | Linux Questions | Linux Forums
Reply With Quote
  #4  
Old 1st April 2008, 04:37 PM
bbfuller Offline
Registered User
 
Join Date: Jun 2005
Location: UK
Posts: 4,345
It does appear as an option in some KDE distributions.

Something that I've always missed in Fedora but assumed was as a result of some decision in development circles.

PCLinuxOS is the one I can actually see it in now.

Last edited by bbfuller; 1st April 2008 at 04:47 PM.
Reply With Quote
  #5  
Old 2nd April 2008, 02:58 PM
Doug_Vitale's Avatar
Doug_Vitale Offline
Registered User
 
Join Date: Jul 2007
Posts: 34
So I guess my request is not possible then? That's too bad. I hate having to su to root in a shell and navigate to a certain directory just to open configuration files that reside outside my /home folder. Ubuntu and PCLinuxOS have Fedora beat in this category.
__________________
Linux Today | Linux Questions | Linux Forums
Reply With Quote
  #6  
Old 2nd April 2008, 03:20 PM
MarkS Offline
Registered User
 
Join Date: Feb 2008
Posts: 53
System -> Prefernces -> Look and Feel -> Nautilus Actions Configuration

(if you don't have it, I think it's
Code:
yum install nautilus-actions
You'll also need sudo/ gksudo enabled. Look at the forum for info

In nautilus actions:
Label: open file as root
Tooltip: open file with root privileges
Path: gksudo
Parameters: gnome-open %M
Reply With Quote
  #7  
Old 11th February 2009, 08:11 PM
Doug_Vitale's Avatar
Doug_Vitale Offline
Registered User
 
Join Date: Jul 2007
Posts: 34
Quote:
Originally Posted by MarkS View Post
System -> Prefernces -> Look and Feel -> Nautilus Actions Configuration

(if you don't have it, I think it's
Code:
yum install nautilus-actions
You'll also need sudo/ gksudo enabled. Look at the forum for info

In nautilus actions:
Label: open file as root
Tooltip: open file with root privileges
Path: gksudo
Parameters: gnome-open %M
Hi Mark, I must not have sudo or gksudo enabled because I followed your instructions, and when I right-click a file I still don't see an "edit as root" option. I did search around for a few minutes and didn't see any instructions. Could you please tell me how to do this?

I'm currently using Fedora 10 (was using 8 when I started this thread), and since there is still no "edit as root" option in the context menu, I can only assume that the Fedora developers are purposefully keeping this unavailable since it appears by default in Ubuntu and SuSE.
__________________
Linux Today | Linux Questions | Linux Forums
Reply With Quote
  #8  
Old 12th February 2009, 06:17 AM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,110
http://gtk.org/setuid.html

It is a complex issue, but not at all fedora-specific. On the other hand users
coming from windows are used to viruses, worms, et al.
Reply With Quote
  #9  
Old 2nd April 2008, 10:12 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
I can't remember how to add an option to the pulldown menu but here is one idea.
If your editor of choice is present in the start menu then right click on the start menu button and select edit menu.
Then locate the editor you wish to use. \
Now select copy and then paste. It will create one with same name with a -2 after.
Select that one and rename say to name_of_editor superuser
Then check the box as a different user. Type root as the user.
Save and exit.
Now select the control center in the start menu
Select KDE Components > File Associations > Then under that the text one and probably plain one in the text list.
Then select Add under the Application Preference Order section
Locate the new editor superuser one you created and add to the list.

How to use.
Now on a plain text file like /etc/X11/xorg.conf right click on it and select Open With and select the editor superuser one.

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
Reply

Tags
adding, context, edit as root, menu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No "Extract"-item in Dolphin-Context-Menu greyhound Using Fedora 1 29th June 2008 04:49 PM
duplicate entries in "Open With" context menu DennyCrane Using Fedora 2 9th May 2008 05:09 AM
Firefox missing "Undo Close Tab" from tab context menu DennyCrane Using Fedora 4 12th April 2008 11:33 PM
KDE hotkeys: cannot get "context menu" to work alarm9k Using Fedora 0 15th March 2008 09:12 AM
How to add "Open Terminal" to context menu? Daedalus Using Fedora 5 16th April 2006 02:09 PM


Current GMT-time: 03:21 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat