On 2006-02-23 14:13, Rob <[EMAIL PROTECTED]> wrote: > > > > Then you have two options: > > > > 1. Start the X11 server in ``listen mode'', which will enable > > connections to port 6000: > > > > $ startx -listen_tcp > > I tried that and then at the xterm I again gave the commands > > xhost +localhost > su'd > setenv DISPLAY localhost:0.0 > > And I was able to run X programs as root, so that worked. > > > > > 2. Use the ~/.Xauthority file of the user who started the X11 > > session. This can only be done by root or a sufficiently > > privileged user, and it works like this: > > > > $ su - > > Password: **** > > > > After you have gained superuser privileges, you can `merge' the > > proper credentials that will allow you to connect to the running > > X11 session (even though it wasn't `root' that started it), by > > using xauth(1): > > > > csh# setenv DISPLAY localhost:0 > > csh# xauth merge ~user/.Xauthority > > > > Now you should be allowed to run X11 programs just fine. > > I did that and it worked! I stopped and started Xorg and the changes seem to > be permanent. > Now I don't have to use the "xhost +localhost" and "setenv DISPLAY > localhost:0.0" any more.
Great :-) Thanks for taking the time to post a followup, to verify that this was indeed a fix for twhat you were seeing. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"