Fedora Linux Support Community & Resources Center
  #1  
Old 3rd November 2010, 10:38 PM
twohot Offline
Registered User
 
Join Date: Jun 2009
Location: 9ja://coalcity
Posts: 259
linuxfedorafirefox
F14, can't run gedit as root

Just did a fresh install of fedora 14 (laughlin).

I want to run gedit as root ... that's my prefered way for creating and adjusting system config files. Now I'm very stuck ... can't even access yum.conf to set keepcache.

I get:

Code:
(gedit:2598): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

**
GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)
Reply With Quote
  #2  
Old 3rd November 2010, 10:44 PM
wojox Offline
Registered User
 
Join Date: Mar 2010
Location: US, Texas
Age: 45
Posts: 46
linuxfedorafirefox
Re: F14, can't run gedit as root

I got it to work in F14

Code:
su -
gedit /etc/X11/xorg.conf
__________________
Fedora 16 Desktop Edition
Reply With Quote
  #3  
Old 3rd November 2010, 10:53 PM
gizenshu Offline
Registered User
 
Join Date: Sep 2010
Posts: 154
linuxfedorafirefox
Re: F14, can't run gedit as root

I have the same problem as OP.
__________________
蛙在井底不知道大海的噪聲
Reply With Quote
  #4  
Old 3rd November 2010, 11:05 PM
twohot Offline
Registered User
 
Join Date: Jun 2009
Location: 9ja://coalcity
Posts: 259
linuxfedorafirefox
Re: F14, can't run gedit as root

Quote:
Originally Posted by wojox View Post
I got it to work in F14

Code:
su -
gedit /etc/X11/xorg.conf
wondering how an adjustment of xorg.conf can be beneficial to glib ... those errors were glib errors (or so it seems)
Reply With Quote
  #5  
Old 3rd November 2010, 11:11 PM
CronoCloud Offline
Registered User
 
Join Date: May 2010
Location: Midwest USA
Age: 50
Posts: 513
linuxfedorafirefox
Re: F14, can't run gedit as root

I bet you're using su -c. gedit needs the proper environment variables set, try using sudo or su -lc

Ron Rogers Jr. (CronoCloud)
Reply With Quote
  #6  
Old 3rd November 2010, 11:27 PM
twohot Offline
Registered User
 
Join Date: Jun 2009
Location: 9ja://coalcity
Posts: 259
linuxfedorafirefox
Re: F14, can't run gedit as root

Quote:
Originally Posted by CronoCloud View Post
I bet you're using su -c. gedit needs the proper environment variables set, try using sudo or su -lc

Ron Rogers Jr. (CronoCloud)
that worked! However, i find this requirement absord. This is a new phenomenon.
Reply With Quote
  #7  
Old 4th November 2010, 12:09 AM
gizenshu Offline
Registered User
 
Join Date: Sep 2010
Posts: 154
linuxfedorafirefox
Re: F14, can't run gedit as root

I was using su and gedit printed the error above. su is how millions of users invoked root for a couple decades. Why do we need to do it different now?
__________________
蛙在井底不知道大海的噪聲
Reply With Quote
  #8  
Old 4th November 2010, 12:14 AM
CronoCloud Offline
Registered User
 
Join Date: May 2010
Location: Midwest USA
Age: 50
Posts: 513
linuxfedorafirefox
Re: F14, can't run gedit as root

Quote:
Originally Posted by gizenshu View Post
I was using su and gedit printed the error above. su is how millions of users invoked root for a couple decades. Why do we need to do it different now?
I'm not for certain, but I believe the previous behavior was actually incorrect. I've always used su -l and never got in the habit of using just su because some things simply didn't work properly without it.

Ron Rogers Jr. (CronoCloud)
Reply With Quote
  #9  
Old 4th November 2010, 01:54 AM
pythagorean Offline
Registered User
 
Join Date: Aug 2010
Posts: 272
linuxfedorafirefox
Re: F14, can't run gedit as root

Well, I have to throw my hat into the ring here too. I was going to add shared virtual folders permanently and I did su and then gedit and I got the message that I do not have permission.

I own this computer. It is my system. I have used su and opened gedit a zillion times in the past.

very annoying... I don't have permission? FROM WHOM? Sheesh.
Reply With Quote
  #10  
Old 4th November 2010, 02:07 AM
theozzlives Offline
Registered User
 
Join Date: Dec 2008
Location: Okieville, USA
Age: 50
Posts: 21
linuxubuntufirefox
Re: F14, can't run gedit as root

Quote:
Originally Posted by pythagorean View Post
Well, I have to throw my hat into the ring here too. I was going to add shared virtual folders permanently and I did su and then gedit and I got the message that I do not have permission.

I own this computer. It is my system. I have used su and opened gedit a zillion times in the past.

very annoying... I don't have permission? FROM WHOM? Sheesh.
I had that problem and did:
Code:
yum remove gedit
yum install gedit
It works fine now!
__________________
MCP, Linux+/A+ certified
System Specs

If you can't be good, be VERY good at being naughty!
Reply With Quote
  #11  
Old 4th November 2010, 07:00 AM
twohot Offline
Registered User
 
Join Date: Jun 2009
Location: 9ja://coalcity
Posts: 259
linuxfedorafirefox
Re: F14, can't run gedit as root

Quote:
Originally Posted by theozzlives View Post
i had that problem and did:
Code:
yum remove gedit
yum install gedit
it works fine now!
that didn"t solve anything here.
Reply With Quote
  #12  
Old 4th November 2010, 11:57 AM
CronoCloud Offline
Registered User
 
Join Date: May 2010
Location: Midwest USA
Age: 50
Posts: 513
linuxfedorafirefox
Re: F14, can't run gedit as root

Quote:
Originally Posted by pythagorean View Post
I was going to add shared virtual folders permanently and I did su and then gedit and I got the message that I do not have permission.

I own this computer. It is my system. I have used su and opened gedit a zillion times in the past.

very annoying... I don't have permission? FROM WHOM? Sheesh.
Do a su and then run run env

Notice how some of the environment variables are NOT root's? That's why it won't work. The old behavior was probably incorrect and permissive in a way it shouldn't have been, allowing people to edit as root with regular user environment variables.

now do a su -l and run env. See the difference?

Ron Rogers Jr. (CronoCloud)
Reply With Quote
  #13  
Old 4th November 2010, 04:30 PM
bryhawks Offline
Registered User
 
Join Date: Mar 2005
Location: Utah (Purgatory)
Posts: 8
windows_xp_2003firefox
Re: F14, can't run gedit as root

The work around I used was nano... I was able to do my work and move on... I have since attempted to replace gedit but still was a no go.

Sorry Ron, I understand what you're saying but your answer is an incorrect one here. Using su to manipulate files should work just has it has in the past... Gedit seems to be borked at the moment.
Reply With Quote
  #14  
Old 4th November 2010, 05:13 PM
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,421
linuxfedorafirefox
Re: F14, can't run gedit as root

Using plain su - opens gedit fine here. When I click the open icon it starts in root's home dir.

Also, our friend Bee has written the gedit-beesu-plugin to allow opening files as root from gedit. It's in the repos:
http://honeybeenet.altervista.org/beesu/?id=108300
Code:
yum install beesu
yum install gedit-beesu-plugin
"Mutate or die."
Reply With Quote
  #15  
Old 5th November 2010, 12:12 AM
sej7278 Offline
Registered User
 
Join Date: Sep 2004
Posts: 2,008
linuxfedorafirefox
Re: F14, can't run gedit as root

can't you just run "su -", what do you need the "l" for?

i agree you should never just use "su" or "su root" as some people do.
Reply With Quote
Reply

Tags
fc14, gedit, grub.conf

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
[SOLVED] gedit can't change font size as root errorxp Using Fedora 2 27th August 2010 11:25 AM
Wierd behaviour when invoking Gedit from root terminal FSLLL Using Fedora 4 28th November 2009 06:50 AM
Can't change gedit preferences when logged in as root ( su ). opencraft Using Fedora 3 23rd September 2009 09:07 AM
gedit problems with root yellow Using Fedora 15 28th October 2008 06:29 PM
Gedit gives error when no write access - ImportError: No module named gedit wpyung Using Fedora 0 15th June 2006 09:54 AM


Current GMT-time: 23:51 (Wednesday, 16-08-2017)

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