on Fri, Jan 19, 2001 at 08:35:38AM -0600, ktb ([EMAIL PROTECTED]) wrote: > On Fri, Jan 19, 2001 at 01:48:12AM -0800, kmself@ix.netcom.com wrote: > > on Thu, Jan 18, 2001 at 09:13:45PM -0700, Ray Percival ([EMAIL PROTECTED]) > > wrote: > > > When I try to launch a X application as root it tells me the > > > client can not connect to the server. It is a stock 2.2 X install > > > does anyone have any thoughts on the subject? Thanks Ray > > > > Alternative to methods suggested: > > > > $ xauth merge ~<user>/.Xauthority > > > > ...will add all entries from the given user's .Xauthority file to root's > > .Xauthority file. This is IMO preferable to linking a file providing > > direct root access to an unpriviledged user's file. > > > > Note that you failed to mention several important details of what your > > are doing, namely: > > > > - You'd started the session as a non-root user. > > - You'd su'd to root either without the '-' flag (including this > > initializes root's environment, excluding it retains the user > > environment), or with it and subsequently set root's $DISPLAY > > environment variable. (I presume this). > > > > Thanks for the tip. I will do it this way. Makes more sense. > I think - > $ xauth merge ~<user>/.Xauthority > has to be run as root though. I tried as a regular user and nothing.
Correct. You're adding to root's .Xauthority file the authorization cookie in <user>'s .Xauthority file. 'merge' reads _from_ specified file _to_ default file (typically ~/.Xauthority, unless otherwise specified). > as root - > debian:~# xauth merge /home/kent/.Xauthority > xauth: creating new authority file /root/.Xauthority > If I'm off on this let me know. > kent -- Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/ What part of "Gestalt" don't you understand? There is no K5 cabal http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org
pgpmy7w8qsMJC.pgp
Description: PGP signature