B.2.2 Modifying Security to Accept Remote X-Windows


next up previous contents
Next: C Basics for Using Up: B.2 Redirecting X-Window Outputs Previous: B.2.1 Defining X-Window Output

B.2.2 Modifying Security to Accept Remote X-Windows

For Unix machines, the following command will temporarily allow all remote nodes permission to create X-windows on your local machine. The command on the second and third lines will only allow access from the node sxt3.
% xhost +

% xhost +sxt3

% xhost +sxt3.space.lockheed.com
It is possible to make a permanent change to the security list of nodes which should be able to create X-windows on your local machine. For the DEC Ultrix or VMS machines using DEC Windows, the following steps are required on the local machine:

  1. Find the `Session Manager' window and make that the current window
  2. Click and hold on the `Customize' item
  3. Drag and select the `Security' item (by releasing the button)
  4. Enter the remote host name. An example would be `sxt2' (without the quotes) if sxt2 was defined in the /etc/hosts file. If not, you would enter the full name `sxt2.spac.lockheed.com'
  5. Click on `Add' and then `OK' to exit
When trying to establish a connection between a DEC and a Sun machine, it appears that it might be necessary to have the remote node name and number located in the /etc/hosts file. If you have problems after following the instructions above, you should try editing the /etc/hosts file and adding the remote host name.

On all Unix machines, the superuser can edit the file /etc/X0.hosts and add the names of the nodes which should be allowed access (one machine name per line).


next up previous contents
Next: C Basics for Using Up: B.2 Redirecting X-Window Outputs Previous: B.2.1 Defining X-Window Output


ydac@mssly1.mssl.ucl.ac.uk