>> The first user logs in through xdm, but the second user is in a different
>> room (or not even the same building) but will telnet to the machine and
>> start the build (which needs access to the X server).
>
>In that case the first user is a red herring - it doesn't matter whether
>they exist or not.
>
>The second user needs to allow the build machine to connect to
>the
>screen on his desk. He can do this with
> xhost +buildmachine
>in his .xinitrc, but he may need to set the environment variable
>DISPLAY (with
> setenv DISPLAY desktopmachine:0
>pr
> export DISPLAY=desktopmachine:0
>depending upon shell) every time he logs in.
>I haven't used telnet for a long time (I don't trust my net)
>last time I looked this wasn't automatic.
Sorry, I must not have described the situation well enough. The second user telnets into the build machine (his desktop machine may or may not be running an X server - that doesn't enter into it) and should be able to open windows on the X server running on the build machine, such as
build> xterm -display localhost:0
Since he is not the user who logged in with xdm on the build machine, he doesn't have access to it until the xdm user runs `xhost +localhost`. As I said before our network is trusted, so I have no problems with an xhost, but I don't know of a way to run it automatically. I'm not sure if using some sort of shared Xauthority file is desirable or even doable, but if it's a possibility I would be happy with that solution aswell.
I have tried putting `xhost +localhost` in the xdm user's .xinitrc but that didn't do the trick...
--Mike
- [Xpert]xhost / xauth Woes Mike_Mallett
- Re: [Xpert]xhost / xauth Woes Dr Andrew C Aitchison
- Re: [Xpert]xhost / xauth Woes Mike_Mallett
- Re: [Xpert]xhost / xauth Woes Dr Andrew C Aitchison
- Mike_Mallett
