"su -" no longer works to use X remotely

jar@jarfx ~ $ su -
Password:
jarfx:~ # xterm &
xterm: Xt error: Can’t open display: %s
jarfx:~ # echo $DISPLAY
localhost:10.0

What has changed?

Changed compared to what?

Irrespectively, compare the $XAUTHORITY environment variable for both users.

jar@jarfx ~ $ echo $XAUTHORITY

jar@jarfx ~ $ su -
Password:
jarfx:~ # echo $XAUTHORITY
/root/.xauthIcm6Pl

Please post computer text as preformatted.

Show the content of X authority in each case

xauth list
jarfx:~ # xauth list
jarfx/unix:10  MIT-MAGIC-COOKIE-1  bbbe88d84f0fb6fbf0ecfd6bfc08a409
jar@jarfx ~ $ xauth list
jardell.suse/unix:0  MIT-MAGIC-COOKIE-1  4239cd6805f1ba5d99e899094267d55a
jardell.suse/unix:11  MIT-MAGIC-COOKIE-1  3bbd46e4e40212124d20101dc1267b08
jardell.suse/unix:10  MIT-MAGIC-COOKIE-1  7b67afe52e06f5dde006b4f7bd42e3d0
jardell/unix:12  MIT-MAGIC-COOKIE-1  163ce7c8871c3cb5ee9e610c3a156746
jardell/unix:13  MIT-MAGIC-COOKIE-1  d44ac936acb1ec08d980cd75333d51e3
jardell/unix:0  MIT-MAGIC-COOKIE-1  97124b3190b89283b2087b0a81165600
jardell/unix:10  MIT-MAGIC-COOKIE-1  d0cb6f0cc5bf5ce38a78bbcefea2b1f5
jardell/unix:11  MIT-MAGIC-COOKIE-1  294b6a123022d73ffa294838501a2b14
jarfx/unix:15  MIT-MAGIC-COOKIE-1  c85b407686ae09136ee5545bffee07a2
jarfx/unix:14  MIT-MAGIC-COOKIE-1  1956d0fc7eebaca99958468014dedab4
jarfx/unix:1  MIT-MAGIC-COOKIE-1  0da5c3a1eb09bd7329eea75f2186736f
jarfx/unix:0  MIT-MAGIC-COOKIE-1  7f85144e62eddf9eb286bb004c109622
jarfx.dyndns.org/unix:12  MIT-MAGIC-COOKIE-1  b95ee3cbd90cac067aa9e1a1f5f539ea
jarfx/unix:13  MIT-MAGIC-COOKIE-1  96dfa937930a246ab70a14c34c492b69
localhost.localdomain/unix:10  MIT-MAGIC-COOKIE-1  641eaf832118bc933a7805531b008ffd
localhost.localdomain/unix:11  MIT-MAGIC-COOKIE-1  1ec25c1c8acad38d2316a6f918574149
jarfx.dyndns.org/unix:11  MIT-MAGIC-COOKIE-1  256d9898cdfb47a5328eae56c0d9b89a
jarfx.dyndns.org/unix:10  MIT-MAGIC-COOKIE-1  20b6f8974ea6e0e2f70a4b3e6fc7bcf5
jarfx/unix:12  MIT-MAGIC-COOKIE-1  dfcb5ce28bf9728643d54f450625533c
jarfx/unix:11  MIT-MAGIC-COOKIE-1  d0a4db145a700982b3ce265d3a65ccf3
jarfx/unix:10  MIT-MAGIC-COOKIE-1  bbbe88d84f0fb6fbf0ecfd6bfc08a409

It won’t even do remote X as myself:
jar@jarfx ~ $ xterm &
[1] 25075
xterm: Xt error: Can’t open display: localhost:10.0
[1]+ Exit 1 xterm
jar@jarfx ~ $

ipV6 was scrtewing it up. I turned it off, and it works now. Thanks.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.