Trouble in accessing `/home/USERNAME/.Xauthority'

NoOp glgxg at sbcglobal.net
Thu Mar 18 16:29:19 UTC 2010


On 03/17/2010 11:28 PM, Tom H wrote:
...
> The OP is not using "ssh -X ..." so he does not have an .Xauthority in
> her/his/root's ~/ by default because 9.10 introduced having the X
> authority in /var/run/gdm/auth-for-.../database. It looks like the
> Gnome/Ubuntu devs have yet to prevent X from using ~/.Xauthority so I
> was wrong, as long as you use "ssh -X". Just runing
> touch ~/.Xauthority
> sudo ln -fs ~/.Xauthority /root/.Xauthority
> will not create a proper X authority.
> 
> Furthermore, in 9.10, there is no need for step 4 because 9.10 is set
> up to allow launching an X app when logged in a root in terminal.
> 
> PS: For the record, using cp or ln to create an X authority for root
> is fine (and quick), but if it fails
> xauth -f /var/run/gdm/auth-for-gdm-.../database -i extract - $DISPLAY
> | xauth -f /path/to/Xauthority merge -
> is the "proper" (if much too wordy!) way. [If /root/.Xauthority
> exists, you can skip -f /path/to/Xauthority]
> 

Got it. Thanks for the explanation.

Gary






More information about the ubuntu-users mailing list