About Security

This section provides basic information about Security, how connections are allowed or denied:

 

Allow by Xauth Cookie

Xauth Cookie authorization is based on MIT-MAGIC-COOKIE-1 (also known as magic cookie method),  in which the UNIX program Xauth views and transfers cookies.

The X-server obtains the cookie, which is a 16-byte random number. When the X-application connects, it sends the cookie. If the 16 bytes sent by the application are the same as the bytes in the X-server, the client is authorized.

How the magic cookie is dependent on whether or not the connection method for session is XDMCP.

Xauthority File

The Xauth cookie is a file named Xauthority  that is  stored in your home directory.

This file is a password for the X-Win  display - do not assign that file  group or world read or write permissions. The correct permissions for this file are read and write, only for the local user (you).

SSH Connection

By default,  X11 Forwarding is enabled with the SSH connection method, which handles setting the XAuth cookie.

If X11 Forwarding is disabled, the display command is manually entered. An example follows.

xterm -ls  -display  @DISPLAY@

-display @DISPLAY@ represents the argument for xterm -ls

Alternatively, which is recommended, is to enable Send Xauth and then submit the following command. An example follows.

 xauth merge - ; xterm -ls  -display @DISPLAY@

Allow by Address

This feature allows specified hosts to connect to the local workstation. If no hosts are listed, hosts that attempt to connect will not be allowed. If Allow by Prompt is selected (see the section below), a request for approval will be made for each attempt to connect - this includes contact attempted by hosts that were specified in session configurations

Allow by Prompt

When a client is not authorized via Xauth, Address, or SSH with X11 forwarding, a request will occur with each connection attempt - allow or deny that connection.

Related Topics

Configuring security:

Connection methods: