Re: Gnome error messages opening gedit from root terminal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2003-05-15 at 13:36, Havoc Pennington wrote:
> On Thu, May 15, 2003 at 08:52:13AM -0500, Gerry Tool wrote:
> > When I open a file in gedit from a root terminal session, I get the
> > following message.
> > 
> > (gedit:6111): GnomeUI-WARNING **: While connecting to session manager:
> > Authentication Rejected, reason : None of the authentication protocols

> Basically you will get that message if gedit can't authenticate to the
> session manager. To authenticate, the root gedit needs to read
> ~/.ICEauthority in your user's home directory. However, a root gedit
> doesn't know which user's .ICEauthority file to look at.  It tries to
> read /root/.ICEauthority and that doesn't do any good, thus the
> failure.
> 
> To just quiet the message you can use "su -" instead of "su" to 
> avoid inheriting the SESSION_MANAGER environment variable.
> 
> To make it actually work, you can set ICEAUTHORITY=~user/.ICEauthority
> (much as XAUTHORITY is already set).
> 
> However, you don't really want root to connect to the SM (since the SM
> can't restart a program running as root), it is probably more right to
> unset SESSION_MANAGER for root.
> 
> I can't quickly think of how we would do that automatically without
> breaking the case where the SM itself is running as root (an entire
> root GUI desktop session). Of course, I don't think you should log in
> to a whole desktop as root, so maybe that's OK. ;-)
> 
> The right fix may be for the session manager to automatically not
> restart applications that are running as a different user.  But still
> let those apps connect, so that they are able to exit cleanly on
> logout and such.

Thanks for the explanation.  I'll use su -.  That clearly works without
the message.  I won't file a bug report since this seems to be well
understood behavior.

Gerry





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux