This was new. X forwarding broke after I su'ed to another user. What previously worked says
Connection lost to X server `localhost:10.0'
echo $DISPLAY localhost:10.0
xauth list Hostname/unix:10 MIT-MAGIC-COOKIE-1 f4bb4714280c22018cacd461277dd760
xauth add Hostname/unix:10 MIT-MAGIC-COOKIE-1 f4bb4714280c22018cacd461277dd760
Easier:
xauth extract - "$DISPLAY" | su otheruser -c 'xauth merge -'
Insert the requisite mention of ssh
if you’re doing this across the network, etc.
Re:
jplindstrom on 2005-06-04T20:24:25
Excellent, thanks!