[gull] Xx.
Marc SCHAEFER
schaefer at alphanet.ch
Thu Jul 1 18:21:02 CEST 2004
On Thu, Jul 01, 2004 at 05:48:20PM +0200, BRINER Cedric wrote:
> = LE TEST =
Je le fais (Debian stable)
schaefer at defian:~% ssh -X janeway # janeway's /etc/ssh/sshd_config
schaefer at janeway:~$ xclock &
[1] 419
schaefer at janeway:~$ echo $DISPLAY
localhost:10.0
schaefer at janeway:~$ xauth list
janeway/unix:10 MIT-MAGIC-COOKIE-1 c8f91dfd02fe050a5746d61ec11b7642
schaefer at janeway:~$ su # pas su - pour préserver DISPLAY
Password:
janeway:/home/schaefer# xclock
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server
shutdown).
janeway:/home/schaefer# export XAUTHORITY=~schaefer/.Xauthority
janeway:/home/schaefer# xclock &
[1] 426
# probablement que export XAUTHORITY=$HOME/.Xauthority marche aussi
donc ça marche (tm)
> 7. mais que ca ne marche pas!
Préciser le message d'erreur! Si c'est
janeway:~# xclock
Error: Can't open display:
alors c'est que tu as fait su - au lieu de su,
et donc DISPLAY n'est pas préservé.
More information about the gull
mailing list