Re: strange rvxt behaviour
pfaffben@pilot.msu.edu (Ben Pfaff) writes:
> Root doesn't have rights to the X display because root doesn't own the
> display, the user who started the session does. A quick fix (but
> insecure) is to type `xhost +localhost' before su'ing to root. A
> better fix is to use xauth--try `man xauth' for more info.
A useful trick is to set the XAUTHORITY environment variable. For example,
$ XAUTHORITY=$HOME/.Xauthority
$ export XAUTHORITY
or in csh
% setenv XAUTHORITY $HOME/.Xauthority
Now when you use su, the XAUTHORITY variable still points to the correct
file and you can access the display. Note that `su -l' does not work,
since the XAUTHORITY environment variable is unset.
Brian
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: