Xauth is more secure than the older xhost mechanism, such as xhost
foo.bar.com. You have to actually transfer the key generated by X
when you login to your remote host so it has the "key" to give to the
local Xserver to get permission granted for local display. Seems
complicated but if you install SSH it will manage this for you.
Normally you would need to do this without using SSH:
xauth extract - $DISPLAY | rsh otherhost xauth merge -
or
xauth nextract - $DISPLAY
which produces a very long number, the local Xsession key, then you
must do this on the remote server:
xauth nmerge -
and paste in the number from the first command's output.
Hope this helps,
Dow
PS. By the way, SSH sets up a remote X proxy server so the application
running on the remote host "thinks" it is on the local display. I
would prefer this anyway as your remote X session can easily
compromise security without it. Also, dgld based apps won't run thru
SSH.
"David S. Jackson" wrote:
>
> Hi,
>
> I've been reading the xauth man page, but I don't understand how to
> allow myself to run Xapps as root in my user account Xwindow. For
> example, if I want to run some spiffy network Xapp in my user account X
> window, I would su to root, and launch from an xterm. But I get
> something like
>
> Xlib: connection to "sylvester.dsj.net:0.0" refused by server
> Xlib: Client is not authorized to connect to Server
>
> How could I correct this?
>
> --
> David S. Jackson http://www.dsj.net
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> "Injustice anywhere is a threat to justice everywhere."
> --Martin Luther King Jr.
> --
> To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.
--
_______________________________________________________________
Dow Hurst Office: 770-499-3428
Systems Support Specialist Fax: 770-423-6744
1000 Chastain Rd.
Chemistry Department SC428 Email: ">dhurst@ksumail.kennesaw.edu
Kennesaw State University ">Dow.Hurst@mindspring.com
Kennesaw, GA 30144
*********************************
*Computational Chemistry is fun!*
*********************************
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.