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
  #16  
Old 5th November 2010, 09:00 AM
twohot's Avatar
twohot Offline
Registered User
 
Join Date: Jun 2009
Location: 9ja://coalcity
Posts: 243
linuxfedorafirefox
Re: F14, can't run gedit as root

The point is that from F11 to F13, running gedit from the root shell prompt opens it.
# gedit /home/user/thefile

now it doesn't work. Instead you get a glib error. Looks like something is b0rked.
$ su -lc 'gedit /home/user/thefile is extra pain
Reply With Quote
  #17  
Old 10th November 2010, 04:52 AM
taytong888 Offline
Registered User
 
Join Date: Mar 2010
Posts: 124
linuxfedorafirefox
Cannot use gedit in Fedora 14...

Hi,

Since I cannot upgrade FC13 to FC14, I installed FC14 directly onto its existing partition. Yumex does show that gedit IS installed. However, when I use gedit to verify the content of grub.conf file as below, I got error:

Code:
# gedit /boot/grub/grub.conf

(gedit:9969): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
What should I do next? Thanks a lot for your help.
Reply With Quote
  #18  
Old 10th November 2010, 05:34 AM
piga's Avatar
piga Offline
Registered User
 
Join Date: Sep 2007
Location: Seba Beach, Alberta Canada
Age: 19
Posts: 480
linuxchrome
Re: F14, can't run gedit as root

I have the same problem for many different applications, and not just when invoking the root account, on two different machines. This error is currently all that is stopping me from upgrading my own computer from 13 to 14, so I am anxious to find out if there is a fix available for it or not. If there is not one I am leery about upgrading knowing I would have to live with this. It seems to devalue the terminal.
__________________
Thank you,
Hamish Paul Wilson
Reply With Quote
  #19  
Old 10th November 2010, 06:01 AM
ozjd's Avatar
ozjd Online
Registered User
 
Join Date: Feb 2008
Location: Sydney Australia
Age: 57
Posts: 2,228
linuxchrome
Re: Cannot use gedit in Fedora 14...

Do a search and you will find a number of threads on this. Seems the general idea is gedit needs the root environment so use su- (note the minus sign) not just su.

If that doesn't work do a search and have a look at some of the other threads.
Reply With Quote
  #20  
Old 10th November 2010, 07:19 AM
al_chem Offline
Registered User
 
Join Date: Jun 2007
Posts: 65
linuxfedorafirefox
Re: F14, can't run gedit as root

Quote:
Originally Posted by piga View Post
It seems to devalue the terminal.
One could very well argue that using the terminal to launch gedit instead of e.g. vi is what is actually devaluing it.
Reply With Quote
  #21  
Old 10th November 2010, 08:39 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
linuxfedorafirefox
Re: F14, can't run gedit as root

Quote:
Originally Posted by twohot View Post
The point is that from F11 to F13, running gedit from the root shell prompt opens it.
# gedit /home/user/thefile

now it doesn't work. Instead you get a glib error. Looks like something is b0rked.
$ su -lc 'gedit /home/user/thefile is extra pain
You are correct using just su does open gedit in F13. However, if you look in the terminal window there are many warnings:

GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)

When I used su - (su space dash) and then typed gedit I saw no warnings.
Reply With Quote
  #22  
Old 10th November 2010, 11:19 AM
hbaird Online
Registered User
 
Join Date: Dec 2009
Posts: 147
linuxfedorafirefox
Re: Cannot use gedit in Fedora 14...

I have to use "su "space" -" it won't work without the space.
Harold
Reply With Quote
  #23  
Old 10th November 2010, 11:40 AM
BradW's Avatar
BradW Offline
Registered User
 
Join Date: May 2004
Location: Concord, CA
Posts: 68
windows_vistafirefox
Unhappy No protocol specified, cannot open display

I am having a similar problem. After su - from terminal, I can't open GEdit or Nautilus. The error is:

No protocol specified
Cannot open display

Same thing with su -l. If I log out of GNOME and then back in, it will start working. However, it also will start failing again sooner than later.

I have seen this problem in previous Fedora releases, but F13 was working fine.

Anyone else seeing this flavor of the problem?

Brad
Reply With Quote
  #24  
Old 10th November 2010, 12:07 PM
ozjd's Avatar
ozjd Online
Registered User
 
Join Date: Feb 2008
Location: Sydney Australia
Age: 57
Posts: 2,228
linuxchrome
Re: Cannot use gedit in Fedora 14...

There are 2 ways to use su. Used with the minus sign it puts you in the root environment. Without you are still in the user's environment.
Do

su-
gedit "filename"
Reply With Quote
  #25  
Old 10th November 2010, 12:14 PM
bob's Avatar
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,234
linuxfedorafirefox
Re: Cannot use gedit in Fedora 14...

Ozjd, what he's saying is that you'd need to add a space between "su" and "-" so it's "su -" instead of "su-". And yes, that's different in F14 than previous versions.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #26  
Old 10th November 2010, 12:15 PM
ozjd's Avatar
ozjd Online
Registered User
 
Join Date: Feb 2008
Location: Sydney Australia
Age: 57
Posts: 2,228
linuxchrome
Re: Cannot use gedit in Fedora 14...

Sorry my typo. Don't know why I did that as I type space when I use it.
Reply With Quote
  #27  
Old 10th November 2010, 12:20 PM
Arimus's Avatar
Arimus Offline
Registered User
 
Join Date: Mar 2008
Location: Wales
Posts: 97
linuxfedorafirefox
Re: F14, can't run gedit as root

su - is actually the same as su -l

I've always used su - (or su -l <whoever I need to operate as> ) and never used su alone.

su alone as pointed out does not set the environment up and so alot of commands are likely to either misbehave, fail to execute at all.
__________________
--
Users are like a virus: Each causing a thousand tiny crises until the host finally dies.
Reply With Quote
  #28  
Old 10th November 2010, 12:32 PM
bob's Avatar
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,234
linuxfedorafirefox
Re: F14, can't run gedit as root

BTW, I've merged the threads to get all the ideas in one area. Interesting that vi and nano work with 'su' while emacs and gedit require "su -".
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #29  
Old 10th November 2010, 01:12 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfedorafirefox
Re: F14, can't run gedit as root

I can verify that it is working the same as it has since Fedora 10 that I know of.

gedit has required "su -" (or su -l they are identical) to work properly, and wouldn't work with just "su"

The reason is as ChronoCloud stated above.

"su" doesn't create a root login shell, it just retains the environment of the user. "su -l" creates a root login shell so you have all of your environment variables and such set to root.

I ran into this way back around F9 or F10 with gedit, and F14 is still working the same way. (su has always worked this way that I know of, and was designed that way)

---------- Post added at 07:12 AM GMT ---------- Previous post was at 07:07 AM GMT ----------

Bob, the difference is that gedit is a GUI Gnome application and utilizes ORBit as a "middleman", and can't communicate properly unless the PROPER user name is set in the environment. (this is one of the reasons gedit requires "su -"

vi and nano aren't GUI Gnome apps.

Last edited by DBelton; 10th November 2010 at 01:16 PM.
Reply With Quote
  #30  
Old 10th November 2010, 06:29 PM
piga's Avatar
piga Offline
Registered User
 
Join Date: Sep 2007
Location: Seba Beach, Alberta Canada
Age: 19
Posts: 480
linuxchrome
Re: F14, can't run gedit as root

Quote:
Originally Posted by al_chem View Post
One could very well argue that using the terminal to launch gedit instead of e.g. vi is what is actually devaluing it.
Well, on a level I can agree with you there, but my point is more directed on the fact that after I "su" into any user account I can not launch any graphical applications. I do tend to use nano for most config files, but it causes a formatting error when editing grub.conf, which is what I was editing to turn off the graphical boot and turn off KMS.

But one of my main concerns seems to have been alleviated, while accessing the machine through SSH gedit does load. I was worried that this problem might also plague that as well. But it seems ot be all-right. It still does display some error messages though.

Code:
[hamish@griffindor ~]$ ssh -X 000.000.0.00
hamish@192.168.3.52's password: 
/usr/bin/xauth:  creating new authority file /home/hamish/.Xauthority
[hamish@ravenclaw ~]$ gedit
Gtk-Message: Failed to load module "pk-gtk-module": libpk-gtk-module.so: cannot open shared object file: No such file or directory

** (gedit:5369): WARNING **: AT-SPI: Accessibility bus not found - Using session bus.

[hamish@ravenclaw ~]$
EDIT: And the work-arounds specified in the thread do not seem to work:
Code:
[laura@ravenclaw ~]$ su -c gedit
Password: 
No protocol specified

(gedit:5515): Gtk-WARNING **: cannot open display: :0.0
[laura@ravenclaw ~]$ su -l
Password: 
[root@ravenclaw ~]# gedit
No protocol specified

(gedit:5584): Gtk-WARNING **: cannot open display: :0.0
[root@ravenclaw ~]#
__________________
Thank you,
Hamish Paul Wilson

Last edited by piga; 10th November 2010 at 09:20 PM.
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 05: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: 16:43 (Saturday, 25-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