Granting access to specific accounts
If you log in through scologin, you can control
display access by using an authorization protocol
called MIT-MAGIC-COOKIE.
If scologin's authorize configuration
resource is set, upon logging in, both the X server and the user
receive an authorization code called a ``magic cookie''.
If a user attempts to run a client on an X server but does not
have the required authorization record, the server denies the
client access.
For details on configuring scologin,
see
``Customizing scologin''
and the
scologin(XC)
manual page.
The user receives the magic cookie through an authorization file in the $HOME directory, named .Xauthority. The authorization file may contain authorization codes for multiple X servers, allowing the user to run clients on these servers. For security, only the user has read or write permissions on authorization files. The user that logged in through scologin can share authorization records with other users, however.
To grant access permission to a specific user, perform the following steps. You must be logged in as root to perform this task.
DisplayManager*authorize: trueWhen you have finished, restart scologin.
Extract the X server's authorization code
by running:
xauth extract tempfilename display
In this command, tempfilename is a temporary file in which the authorization code is stored before it is merged. The displayname is the name of the display as shown by the previous xauth list command.
Finally, merge it with the other user's authorization file by running:
xauth merge tempfilename
In this command, tempfilename is the same temporary file created by the xauth extract command.