[EMAIL PROTECTED] wrote: >On 11-Apr-2001 Karsten M. Self wrote: >> on Wed, Apr 11, 2001 at 10:49:18AM +0100, Dave Whiteley >> ([EMAIL PROTECTED]) wrote: >>> I had a similar problem a bit ago. I seem to recall that I fixed it >>> by making root's ~/.Xauthority file a symbolic link to "my" version >>> of the same file. >> >> Don't do that. >> >> Instead, as root: >> >> $ xauth -merge ~$user/.xauthority >> >> ...for appropriate values of $user.
Coo, thank you, I've been wondering what the right way to do that was (Dave's solution was the neatest way I knew). >Thanks, I thought it sounded horrid. > >I presume that this is a one off fix. You need to do it each time you >su? I guess something like: [ "$DISPLAY" ] && xauth -merge ~$user/.Xauthority ... in root's .bashrc would do, assuming there's only one plausible value of $user. Or, for hack value, 'ssh -X [EMAIL PROTECTED]' will do the job if you have PermitRootLogin turned on. :) -- Colin Watson [EMAIL PROTECTED]