Re: Can't create .Xauthority for users [SOLUTION]
Philippe Grenard <philippe.grenard@m4x.org>:
>
> well, i had some problems with this .Xauthority, but not the same way : when
> logged in, root couldn't open X-based applications...
After upgrading to Debian Etch/Testing, I had exactly the same
problem. Solution:
As user who is running X:
xauth list # if you already have keys, skip next.
xauth generate . # perform if you have no auth file.
xauth nextract username.xa $DISPLAY # should be the only step needed.
As root:
export DISPLAY=$HOSTIP:0.0 # skip $HOSTIP if it's on the same
# machine/IP
xauth nmerge ~username/username.xa # now you can use
# username's auth. while
# logged in as root.
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - Spammers! http://www.spots.ab.ca/~keeling/autospam.html
http://www.ietf.org/rfc/rfc1855.txt democracy human rights Taiwan Independence
Reply to: