XDM(1) AIX XDM(1) NAME xdm - X Display Manager with support for XDMCP SYNOPSIS xxxxddddmmmm [ ----ccccoooonnnnffffiiiigggg _c_o_n_f_i_g_u_r_a_t_i_o_n__f_i_l_e ] [ ----nnnnooooddddaaaaeeeemmmmoooonnnn ] [ ----ddddeeeebbbbuuuugggg _d_e_b_u_g__l_e_v_e_l ] [ ----eeeerrrrrrrroooorrrr _e_r_r_o_r__l_o_g__f_i_l_e ] [ ----rrrreeeessssoooouuuurrrrcccceeeessss _r_e_s_o_u_r_c_e__f_i_l_e ] [ ----sssseeeerrrrvvvveeeerrrr _s_e_r_v_e_r__e_n_t_r_y ] [ ----sssseeeessssssssiiiioooonnnn _s_e_s_s_i_o_n__p_r_o_g_r_a_m ] DESCRIPTION _X_d_m manages a collection of X displays, which may be on the local host or remote servers. The design of _x_d_m was guided by the needs of X terminals as well as the X Consortium standard XDMCP, the _X _D_i_s_p_l_a_y _M_a_n_a_g_e_r _C_o_n_t_r_o_l _P_r_o_t_o_c_o_l. _X_d_m provides services similar to those provided by _i_n_i_t, _g_e_t_t_y and _l_o_g_i_n on character terminals: prompting for login name and password, authenticating the user, and running a ``ses- sion.'' A ``session'' is defined by the lifetime of a particular process; in the traditional character-based terminal world, it is the user's login shell. In the _x_d_m context, it is an arbitrary session manager. This is because in a windowing environment, a user's login shell process does not neces- sarily have any terminal-like interface with which to con- nect. When a real session manager is not available, a win- dow manager or terminal emulator is typically used as the ``session manager,'' meaning that termination of this pro- cess terminates the user's session. When the session is terminated, _x_d_m resets the X server and (optionally) restarts the whole process. When _x_d_m receives an Indirect query via XDMCP, it can run a _c_h_o_o_s_e_r process to perform an XDMCP BroadcastQuery (or an XDMCP Query to specified hosts) on behalf of the display and offer a menu of possible hosts that offer XDMCP display management. This feature is useful with X terminals that do not offer a host menu themselves. Because _x_d_m provides the first interface that users will see, it is designed to be simple to use and easy to custom- ize to the needs of a particular site. _X_d_m has many options, most of which have reasonable defaults. Browse through the various sections of this manual, picking and choosing the things you want to change. Pay particular attention to the SSSSeeeessssssssiiiioooonnnn PPPPrrrrooooggggrrrraaaammmm section, which will describe how to set up the style of session desired. TYPICAL USAGE Actually, _x_d_m is designed to operate in such a wide variety of environments that _t_y_p_i_c_a_l is probably a misnomer. Rev. Release 5 Page 1 XDM(1) AIX XDM(1) First, the _x_d_m configuration file should be set up. Make a directory (usually /_u_s_r/_l_i_b/_X_1_1/_x_d_m) to contain all of the relevant files. Here is a reasonable configuration file, which could be named _x_d_m-_c_o_n_f_i_g: DisplayManager.servers: /usr/lib/X11/xdm/Xservers DisplayManager.errorLogFile: /usr/lib/X11/xdm/xdm-errors DisplayManager*resources: /usr/lib/X11/xdm/Xresources DisplayManager*startup: /usr/lib/X11/xdm/Xstartup DisplayManager*session: /usr/lib/X11/xdm/Xsession DisplayManager.pidFile: /usr/lib/X11/xdm/xdm-pid DisplayManager._0.authorize: true DisplayManager*authorize: false Note that this file simply contains references to other files. Note also that some of the resources are specified with ``*'' separating the components. These resources can be made unique for each different display, by replacing the ``*'' with the display-name, but normally this is not very useful. See the RRRReeeessssoooouuuurrrrcccceeeessss section for a complete discus- sion. The first file, /_u_s_r/_l_i_b/_X_1_1/_x_d_m/_X_s_e_r_v_e_r_s, contains the list of displays to manage that are not using XDMCP. Most works- tations have only one display, numbered 0, so the file will look something like this: :0 Local local /usr/bin/X11/X :0 This will keep /_u_s_r/_b_i_n/_X_1_1/_X running on this display and manage a continuous cycle of sessions. The file /_u_s_r/_l_i_b/_X_1_1/_x_d_m/_x_d_m-_e_r_r_o_r_s will contain error mes- sages from _x_d_m and anything output to stderr by _X_s_e_t_u_p, _X_s_t_a_r_t_u_p, _X_s_e_s_s_i_o_n or _X_r_e_s_e_t. When you have trouble getting _x_d_m working, check this file to see if _x_d_m has any clues to the trouble. The next configuration entry, /_u_s_r/_l_i_b/_X_1_1/_x_d_m/_X_r_e_s_o_u_r_c_e_s, is loaded onto the display as a resource database using _x_r_d_b. As the authentication widget reads this database before starting up, it usually contains parameters for that widget: xlogin*login.translations: #override\ F1: set-session-argument(failsafe) finish-field()\n\ Return: set-session-argument() finish-field() xlogin*borderWidth: 3 #ifdef COLOR xlogin*greetColor: CadetBlue Rev. Release 5 Page 2 XDM(1) AIX XDM(1) xlogin*failColor: red #endif Please note the translations entry; it specifies a few new translations for the widget which allow users to escape from the default session (and avoid troubles that may occur in it). Note that if #override is not specified, the default translations are removed and replaced by the new value, not a very useful result as some of the default translations are quite useful (such as ``: insert-char ()'' which responds to normal typing). The _X_s_t_a_r_t_u_p file shown here simply prevents login while the file /_e_t_c/_n_o_l_o_g_i_n exists. As there is no provision for displaying any messages here (there isn't any core X client which displays files), the user will probably be baffled by this behavior. Thus this is not a complete example, but simply a demonstration of the available functionality. Here is a sample _X_s_t_a_r_t_u_p script: #!/bin/sh # # Xstartup # # This program is run as root after the user is verified # if [ -f /etc/nologin ]; then exit 1 fi exit 0 The most interesting script is _X_s_e_s_s_i_o_n. This version recognizes the special ``failsafe'' mode, specified in the translations in the _X_r_e_s_o_u_r_c_e_s file above, to provide an escape from the ordinary session: #!/bin/sh # # Xsession # # This is the program that is run as the client # for the display manager. This example is # quite friendly as it attempts to run a per-user # .xsession file instead of forcing a particular # session layout # case $# in 1) case $1 in failsafe) Rev. Release 5 Page 3 XDM(1) AIX XDM(1) exec xterm -geometry 80x24-0-0 -ls ;; esac esac startup=$HOME/.xsession resources=$HOME/.Xresources if [ -f $startup ]; then exec $startup exec /bin/sh $startup else if [ ! -f $resources ]; then resources=$HOME/.Xdefaults fi if [ -f $resources ]; then xrdb -load $resources fi twm & exec xterm -geometry 80x24+10+10 -ls fi OPTIONS All of these options, except ----ccccoooonnnnffffiiiigggg, specify values that can also be specified in the configuration file as resources. ----ccccoooonnnnffffiiiigggg _c_o_n_f_i_g_u_r_a_t_i_o_n__f_i_l_e Names the configuration file, which specifies resources to control the behavior of _x_d_m. /_u_s_r/_l_i_b/_X_1_1/_x_d_m/_x_d_m- _c_o_n_f_i_g is the default. ----nnnnooooddddaaaaeeeemmmmoooonnnn Specifies ``false'' as the value for the DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....ddddaaaaeeeemmmmoooonnnnMMMMooooddddeeee resource. This suppresses the normal daemon behavior, which is for _x_d_m to close all file descriptors, disassociate itself from the con- trolling terminal, and put itself in the background when it first starts up. ----ddddeeeebbbbuuuugggg _d_e_b_u_g__l_e_v_e_l Specifies the numeric value for the DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....ddddeeeebbbbuuuuggggLLLLeeeevvvveeeellll resource. A non-zero value causes _x_d_m to print lots of debugging statements to the terminal; it also disables the DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....ddddaaaaeeeemmmmoooonnnnMMMMooooddddeeee resource, forcing _x_d_m to run synchronously. To interpret these debugging messages, a copy of the source code for _x_d_m is almost a neces- sity. No attempt has been made to rationalize or standardize the output. ----eeeerrrrrrrroooorrrr _e_r_r_o_r__l_o_g__f_i_l_e Rev. Release 5 Page 4 XDM(1) AIX XDM(1) Specifies the value for the DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....eeeerrrrrrrroooorrrrLLLLooooggggFFFFiiiilllleeee resource. This file contains errors from _x_d_m as well as anything written to stderr by the various scripts and programs run during the progress of the session. ----rrrreeeessssoooouuuurrrrcccceeeessss _r_e_s_o_u_r_c_e__f_i_l_e Specifies the value for the DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr****rrrreeeessssoooouuuurrrrcccceeeessss resource. This file is loaded using _x_r_d_b to specify configuration parameters for the authentication widget. ----sssseeeerrrrvvvveeeerrrr _s_e_r_v_e_r__e_n_t_r_y Specifies the value for the DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....sssseeeerrrrvvvveeeerrrrssss resource. See the section SSSSeeeerrrrvvvveeeerrrr SSSSppppeeeecccciiiiffffiiiiccccaaaattttiiiioooonnnn for a description of this resource. ----uuuuddddppppPPPPoooorrrrtttt _p_o_r_t__n_u_m_b_e_r Specifies the value for the DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....rrrreeeeqqqquuuueeeessssttttPPPPoooorrrrtttt resource. This sets the port-number which _x_d_m will monitor for XDMCP requests. As XDMCP uses the registered well-known UDP port 177, this resource should not be changed except for debugging. ----sssseeeessssssssiiiioooonnnn _s_e_s_s_i_o_n__p_r_o_g_r_a_m Specifies the value for the DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr****sssseeeessssssssiiiioooonnnn resource. This indicates the program to run as the session after the user has logged in. ----xxxxrrrrmmmm _r_e_s_o_u_r_c_e__s_p_e_c_i_f_i_c_a_t_i_o_n Allows an arbitrary resource to be specified, as in most X Toolkit applications. RESOURCES At many stages the actions of _x_d_m can be controlled through the use of its configuration file, which is in the X resource format. Some resources modify the behavior of _x_d_m on all displays, while others modify its behavior on a sin- gle display. Where actions relate to a specific display, the display name is inserted into the resource name between ``DisplayManager'' and the final resource name segment. For example, DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....eeeexxxxppppoooo____0000....ssssttttaaaarrrrttttuuuupppp is the name of the resource which defines the startup shell file on the ``expo:0'' display. Because the resource manager uses colons to separate the name of the resource from its value and dots to separate resource name parts, _x_d_m substitutes underscores for both dots and colons when generating the resource name. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....sssseeeerrrrvvvveeeerrrrssss This resource either specifies a file name full of server entries, one per line (if the value starts with a slash), or a single server entry. See the section SSSSeeeerrrrvvvveeeerrrr SSSSppppeeeecccciiiiffffiiiiccccaaaattttiiiioooonnnn for the details. Rev. Release 5 Page 5 XDM(1) AIX XDM(1) DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....rrrreeeeqqqquuuueeeessssttttPPPPoooorrrrtttt This indicates the UDP port number which _x_d_m uses to listen for incoming XDMCP requests. Unless you need to debug the system, leave this with its default value of 177. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....eeeerrrrrrrroooorrrrLLLLooooggggFFFFiiiilllleeee Error output is normally directed at the system con- sole. To redirect it, set this resource to a file name. A method to send these messages to _s_y_s_l_o_g should be developed for systems which support it; however, the wide variety of interfaces precludes any system- independent implementation. This file also contains any output directed to stderr by the _X_s_e_t_u_p, _X_s_t_a_r_t_u_p, _X_s_e_s_s_i_o_n and _X_r_e_s_e_t files, so it will contain descrip- tions of problems in those scripts as well. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....ddddeeeebbbbuuuuggggLLLLeeeevvvveeeellll If the integer value of this resource is greater than zero, reams of debugging information will be printed. It also disables daemon mode, which would redirect the information into the bit-bucket, and allows non-root users to run _x_d_m, which would normally not be useful. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....ddddaaaaeeeemmmmoooonnnnMMMMooooddddeeee Normally, _x_d_m attempts to make itself into a daemon process unassociated with any terminal. This is accom- plished by forking and leaving the parent process to exit, then closing file descriptors and releasing the controlling terminal. In some environments this is not desired (in particular, when debugging). Setting this resource to ``false'' will disable this feature. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....ppppiiiiddddFFFFiiiilllleeee The filename specified will be created to contain an ASCII representation of the process-id of the main _x_d_m process. _X_d_m also uses file locking on this file to attempt to eliminate multiple daemons running on the same machine, which would cause quite a bit of havoc. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....lllloooocccckkkkPPPPiiiiddddFFFFiiiilllleeee This is the resource which controls whether _x_d_m uses file locking to keep multiple display managers from running amok. On System V, this uses the _l_o_c_k_f library call, while on BSD it uses _f_l_o_c_k. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....aaaauuuutttthhhhDDDDiiiirrrr This names a directory in which _x_d_m stores authoriza- tion files while initializing the session. The default value is /_u_s_r/_l_i_b/_X_1_1/_x_d_m. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....aaaauuuuttttooooRRRReeeessssccccaaaannnn This boolean controls whether _x_d_m rescans the Rev. Release 5 Page 6 XDM(1) AIX XDM(1) configuration, servers, access control and authentica- tion keys files after a session terminates and the files have changed. By default it is ``true.'' You can force _x_d_m to reread these files by sending a SIGHUP to the main process. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....rrrreeeemmmmoooovvvveeeeDDDDoooommmmaaaaiiiinnnnnnnnaaaammmmeeee When computing the display name for XDMCP clients, the name resolver will typically create a fully qualified host name for the terminal. As this is sometimes confusing, _x_d_m will remove the domain name portion of the host name if it is the same as the domain name of the local host when this variable is set. By default the value is ``true.'' DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....kkkkeeeeyyyyFFFFiiiilllleeee XDM-AUTHENTICATION-1 style XDMCP authentication requires that a private key be shared between _x_d_m and the terminal. This resource specifies the file con- taining those values. Each entry in the file consists of a display name and the shared key. By default, _x_d_m does not include support for XDM-AUTHENTICATION-1, as it requires DES which is not generally distributable because of United States export restrictions. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....aaaacccccccceeeessssssssFFFFiiiilllleeee To prevent unauthorized XDMCP service and to allow for- warding of XDMCP IndirectQuery requests, this file con- tains a database of hostnames which are either allowed direct access to this machine, or have a list of hosts to which queries should be forwarded to. The format of this file is described in the section XXXXDDDDMMMMCCCCPPPP AAAAcccccccceeeessssssss CCCCoooonnnn---- ttttrrrroooollll.... DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....eeeexxxxppppoooorrrrttttLLLLiiiisssstttt A whitespace-separated list of additional environment variables to pass on to the _X_s_e_t_u_p, _X_s_t_a_r_t_u_p, _X_s_e_s_s_i_o_n, and _X_r_e_s_e_t programs. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....rrrraaaannnnddddoooommmmFFFFiiiilllleeee A file to checksum to generate the seed of authoriza- tion keys. This should be a file that changes fre- quently. The default is /_d_e_v/_m_e_m. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....rrrreeeessssoooouuuurrrrcccceeeessss This resource specifies the name of the file to be loaded by _x_r_d_b as the resource database onto the root window of screen 0 of the display. The _X_s_e_t_u_p program, the Login widget, and _c_h_o_o_s_e_r will use the resources set in this file. This resource data base is loaded just before the authentication procedure is started, so it can control the appearance of the login window. See the section AAAAuuuutttthhhheeeennnnttttiiiiccccaaaattttiiiioooonnnn WWWWiiiiddddggggeeeetttt,,,, which describes the Rev. Release 5 Page 7 XDM(1) AIX XDM(1) various resources that are appropriate to place in this file. There is no default value for this resource, but /_u_s_r/_l_i_b/_X_1_1/_x_d_m/_X_r_e_s_o_u_r_c_e_s is the conventional name. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....cccchhhhoooooooosssseeeerrrr Specifies the program run to offer a host menu for Indirect queries redirected to the special host name CHOOSER. /_u_s_r/_l_i_b/_X_1_1/_x_d_m/_c_h_o_o_s_e_r is the default. See the sections XXXXDDDDMMMMCCCCPPPP AAAAcccccccceeeessssssss CCCCoooonnnnttttrrrroooollll and CCCChhhhoooooooosssseeeerrrr. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....xxxxrrrrddddbbbb Specifies the program used to load the resources. By default, _x_d_m uses /_u_s_r/_b_i_n/_X_1_1/_x_r_d_b. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ccccpppppppp This specifies the name of the C preprocessor which is used by _x_r_d_b. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....sssseeeettttuuuupppp This specifies a program which is run (as root) before offering the Login window. This may be used to change the appearence of the screen around the Login window or to put up other windows (e.g., you may want to run _x_c_o_n_s_o_l_e here). By default, no program is run. The conventional name for a file used here is _X_s_e_t_u_p. See the section SSSSeeeettttuuuupppp PPPPrrrrooooggggrrrraaaammmm.... DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ssssttttaaaarrrrttttuuuupppp This specifies a program which is run (as root) after the authentication process succeeds. By default, no program is run. The conventional name for a file used here is _X_s_t_a_r_t_u_p. See the section SSSSttttaaaarrrrttttuuuupppp PPPPrrrrooooggggrrrraaaammmm.... DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....sssseeeessssssssiiiioooonnnn This specifies the session to be executed (not running as root). By default, /_u_s_r/_b_i_n/_X_1_1/_x_t_e_r_m is run. The conventional name is _X_s_e_s_s_i_o_n. See the section SSSSeeeessssssssiiiioooonnnn PPPPrrrrooooggggrrrraaaammmm.... DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....rrrreeeesssseeeetttt This specifies a program which is run (as root) after the session terminates. Again, by default no program is run. The conventional name is _X_r_e_s_e_t. See the sec- tion RRRReeeesssseeeetttt PPPPrrrrooooggggrrrraaaammmm.... DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ooooppppeeeennnnDDDDeeeellllaaaayyyy DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ooooppppeeeennnnRRRReeeeppppeeeeaaaatttt DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ooooppppeeeennnnTTTTiiiimmmmeeeeoooouuuutttt DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ssssttttaaaarrrrttttAAAAtttttttteeeemmmmppppttttssss These numeric resources control the behavior of _x_d_m Rev. Release 5 Page 8 XDM(1) AIX XDM(1) when attempting to open intransigent servers. ooooppppeeeennnnDDDDeeee---- llllaaaayyyy is the length of the pause (in seconds) between successive attempts, ooooppppeeeennnnRRRReeeeppppeeeeaaaatttt is the number of attempts to make, ooooppppeeeennnnTTTTiiiimmmmeeeeoooouuuutttt is the amount of time to wait while actually attempting the open (i.e., the max- imum time spent in the _c_o_n_n_e_c_t(2) system call) and ssssttttaaaarrrrttttAAAAtttttttteeeemmmmppppttttssss is the number of times this entire pro- cess is done before giving up on the server. After ooooppppeeeennnnRRRReeeeppppeeeeaaaatttt attempts have been made, or if ooooppppeeeennnnTTTTiiiimmmmeeeeoooouuuutttt seconds elapse in any particular attempt, _x_d_m ter- minates and restarts the server, attempting to connect again. This process is repeated ssssttttaaaarrrrttttAAAAtttttttteeeemmmmppppttttssss times, at which point the display is declared dead and dis- abled. Although this behavior may seem arbitrary, it has been empirically developed and works quite well on most systems. The default values are 5 for ooooppppeeeennnnDDDDeeeellllaaaayyyy, 5 for ooooppppeeeennnnRRRReeeeppppeeeeaaaatttt, 30 for ooooppppeeeennnnTTTTiiiimmmmeeeeoooouuuutttt and 4 for ssssttttaaaarrrrttttAAAAtttt---- tttteeeemmmmppppttttssss. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ppppiiiinnnnggggIIIInnnntttteeeerrrrvvvvaaaallll DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ppppiiiinnnnggggTTTTiiiimmmmeeeeoooouuuutttt To discover when remote displays disappear, _x_d_m occa- sionally pings them, using an X connection and _X_S_y_n_c calls. ppppiiiinnnnggggIIIInnnntttteeeerrrrvvvvaaaallll specifies the time (in minutes) between each ping attempt, ppppiiiinnnnggggTTTTiiiimmmmeeeeoooouuuutttt specifies the maximum amount of time (in minutes) to wait for the terminal to respond to the request. If the terminal does not respond, the session is declared dead and ter- minated. By default, both are set to 5 minutes. If you frequently use X terminals which can become iso- lated from the managing host, you may wish to increase this value. The only worry is that sessions will con- tinue to exist after the terminal has been accidentally disabled. _x_d_m will not ping local displays. Although it would seem harmless, it is unpleasant when the workstation session is terminated as a result of the server hanging for NFS service and not responding to the ping. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....tttteeeerrrrmmmmiiiinnnnaaaatttteeeeSSSSeeeerrrrvvvveeeerrrr This boolean resource specifies whether the X server should be terminated when a session terminates (instead of resetting it). This option can be used when the server tends to grow without bound over time, in order to limit the amount of time the server is run. The default value is ``false.'' DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....uuuusssseeeerrrrPPPPaaaatttthhhh _X_d_m sets the PATH environment variable for the session to this value. It should be a colon separated list of directories; see _s_h(1) for a full description. ``:/bin:/usr/bin:/usr/bin/X11:/usr/ucb'' is a common Rev. Release 5 Page 9 XDM(1) AIX XDM(1) setting. The default value can be specified at build time in the X system configuration file with Defaul- tUserPath; DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ssssyyyysssstttteeeemmmmPPPPaaaatttthhhh _X_d_m sets the PATH environment variable for the startup and reset scripts to the value of this resource. The default for this resource is specified at build time by the DefaultSystemPath entry in the system configuration file; ``/etc:/bin:/usr/bin:/usr/bin/X11:/usr/ucb'' is a common choice. Note the absence of ``.'' from this entry. This is a good practice to follow for root; it avoids many common Trojan Horse system penetration schemes. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ssssyyyysssstttteeeemmmmSSSShhhheeeellllllll _X_d_m sets the SHELL environment variable for the startup and reset scripts to the value of this resource. It is /_b_i_n/_s_h by default. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ffffaaaaiiiillllssssaaaaffffeeeeCCCClllliiiieeeennnntttt If the default session fails to execute, _x_d_m will fall back to this program. This program is executed with no arguments, but executes using the same environment variables as the session would have had (see the sec- tion SSSSeeeessssssssiiiioooonnnn PPPPrrrrooooggggrrrraaaammmm). By default, /_u_s_r/_b_i_n/_X_1_1/_x_t_e_r_m is used. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ggggrrrraaaabbbbSSSSeeeerrrrvvvveeeerrrr DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ggggrrrraaaabbbbTTTTiiiimmmmeeeeoooouuuutttt To improve security, _x_d_m grabs the server and keyboard while reading the login name and password. The ggggrrrraaaabbbb---- SSSSeeeerrrrvvvveeeerrrr resource specifies if the server should be held for the duration of the name/password reading. When ``false,'' the server is ungrabbed after the keyboard grab succeeds, otherwise the server is grabbed until just before the session begins. The default is ``false.'' The ggggrrrraaaabbbbTTTTiiiimmmmeeeeoooouuuutttt resource specifies the max- imum time _x_d_m will wait for the grab to succeed. The grab may fail if some other client has the server grabbed, or possibly if the network latencies are very high. This resource has a default value of 3 seconds; you should be cautious when raising it, as a user can be spoofed by a look-alike window on the display. If the grab fails, _x_d_m kills and restarts the server (if possible) and the session. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....aaaauuuutttthhhhoooorrrriiiizzzzeeee DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....aaaauuuutttthhhhNNNNaaaammmmeeee aaaauuuutttthhhhoooorrrriiiizzzzeeee is a boolean resource which controls whether _x_d_m generates and uses authorization for the local Rev. Release 5 Page 10 XDM(1) AIX XDM(1) server connections. If authorization is used, aaaauuuutttthhhhNNNNaaaammmmeeee is a whitespace-separated list of authorization mechan- isms to use. XDMCP connections dynamically specify which authorization mechanisms are supported, so aaaauuuutttthhhh---- NNNNaaaammmmeeee is ignored in this case. When aaaauuuutttthhhhoooorrrriiiizzzzeeee is set for a display and authorization is not available, the user is informed by having a different message displayed in the login widget. By default, aaaauuuutttthhhhoooorrrriiiizzzzeeee is ``true''; aaaauuuutttthhhhNNNNaaaammmmeeee is ``MIT-MAGIC-COOKIE-1.'' DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....aaaauuuutttthhhhFFFFiiiilllleeee This file is used to communicate the authorization data from _x_d_m to the server, using the ----aaaauuuutttthhhh server command line option. It should be kept in a directory which is not world-writable as it could easily be removed, disa- bling the authorization mechanism in the server. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....aaaauuuutttthhhhCCCCoooommmmppppllllaaaaiiiinnnn If set to ``false,'' disables the use of the uuuunnnnsssseeeeccccuuuurrrreeee---- GGGGrrrreeeeeeeettttiiiinnnngggg in the login window. See the section AAAAuuuutttthhhheeeennnn---- ttttiiiiccccaaaattttiiiioooonnnn WWWWiiiiddddggggeeeetttt.... The default is ``true.'' DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....rrrreeeesssseeeettttSSSSiiiiggggnnnnaaaallll The number of the signal _x_d_m sends to reset the server. See the section CCCCoooonnnnttttrrrroooolllllllliiiinnnngggg tttthhhheeee SSSSeeeerrrrvvvveeeerrrr.... The default is 1 (SIGHUP). DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....tttteeeerrrrmmmmSSSSiiiiggggnnnnaaaallll The number of the signal _x_d_m sends to terminate the server. See the section CCCCoooonnnnttttrrrroooolllllllliiiinnnngggg tttthhhheeee SSSSeeeerrrrvvvveeeerrrr.... The default is 15 (SIGTERM). DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....rrrreeeesssseeeettttFFFFoooorrrrAAAAuuuutttthhhh The original implementation of authorization in the sample server reread the authorization file at server reset time, instead of when checking the initial con- nection. As _x_d_m generates the authorization informa- tion just before connecting to the display, an old server would not get up-to-date authorization informa- tion. This resource causes _x_d_m to send SIGHUP to the server after setting up the file, causing an additional server reset to occur, during which time the new authorization information will be read. The default is ``false,'' which will work for all MIT servers. DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....uuuusssseeeerrrrAAAAuuuutttthhhhDDDDiiiirrrr When _x_d_m is unable to write to the usual user authori- zation file ($HOME/.Xauthority), it creates a unique file name in this directory and points the environment variable XAUTHORITY at the created file. It uses /_t_m_p by default. XDMCP ACCESS CONTROL Rev. Release 5 Page 11 XDM(1) AIX XDM(1) The database file specified by the DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....aaaacccccccceeeessssssssFFFFiiiilllleeee provides information which _x_d_m uses to control access from displays requesting XDMCP service. This file contains three types of entries: entries which control the response to Direct and Broadcast queries, entries which control the response to Indirect queries, and macro definitions. The format of the Direct entries is simple, either a host name or a pattern, which is distinguished from a host name by the inclusion of one or more meta characters (`*' matches any sequence of 0 or more characters, and `?' matches any single character) which are compared against the host name of the display device. If the entry is a host name, all comparisons are done using network addresses, so any name which converts to the correct network address may be used. For patterns, only canonical host names are used in the com- parison, so ensure that you do not attempt to match aliases. Preceding either a host name or a pattern with a `!' charac- ter causes hosts which match that entry to be excluded. An Indirect entry also contains a host name or pattern, but follows it with a list of host names or macros to which indirect queries should be sent. A macro definition contains a macro name and a list of host names and other macros that the macro expands to. To dis- tinguish macros from hostnames, macro names start with a `%' character. Macros may be nested. Indirect entries may also specify to have _x_d_m run _c_h_o_o_s_e_r to offer a menu of hosts to connect to. See the section CCCChhhhoooooooosssseeeerrrr. When checking access for a particular display host, each entry is scanned in turn and the first matching entry deter- mines the response. Direct and Broadcast entries are ignored when scanning for an Indirect entry and vice-versa. Blank lines are ignored, `#' is treated as a comment delim- iter causing the rest of that line to be ignored, and `\_n_e_w_- _l_i_n_e' causes the newline to be ignored, allowing indirect host lists to span multiple lines. Here is an example Xaccess file: # # Xaccess - XDMCP access control file # # # Direct/Broadcast query entries # Rev. Release 5 Page 12 XDM(1) AIX XDM(1) !xtra.lcs.mit.edu # disallow direct/broadcast service for xtra bambi.ogi.edu # allow access from this particular display *.lcs.mit.edu # allow access from any display in LCS # # Indirect query entries # %HOSTS expo.lcs.mit.edu xenon.lcs.mit.edu \ excess.lcs.mit.edu kanga.lcs.mit.edu extract.lcs.mit.edu xenon.lcs.mit.edu #force extract to contact xenon !xtra.lcs.mit.edu dummy #disallow indirect access *.lcs.mit.edu %HOSTS #all others get to choose CHOOSER For X terminals that do not offer a host menu for use with Broadcast or Indirect queries, the _c_h_o_o_s_e_r program can do this for them. In the _X_a_c_c_e_s_s file, specify ``CHOOSER'' as the first entry in the Indirect host list. _C_h_o_o_s_e_r will send a Query request to each of the remaining host names in the list and offer a menu of all the hosts that respond. The list may consist of the word ``BROADCAST,'' in which case _c_h_o_o_s_e_r will send a Broadcast instead, again offering a menu of all hosts that respond. Note that on some operating systems, UDP packets cannot be broadcast, so this feature will not work. Example _X_a_c_c_e_s_s file using _c_h_o_o_s_e_r: extract.lcs.mit.edu CHOOSER %HOSTS #offer a menu of these hosts xtra.lcs.mit.edu CHOOSER BROADCAST #offer a menu of all hosts The program to use for _c_h_o_o_s_e_r is specified by the DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....cccchhhhoooooooosssseeeerrrr resource. Resources for this program can be put into the file named by DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....rrrreeeessssoooouuuurrrrcccceeeessss. SERVER SPECIFICATION The resource DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....sssseeeerrrrvvvveeeerrrrssss gives a server specifi- cation or, if the values starts with a slash (/), the name of a file containing server specifications, one per line. Each specification indicates a display which should con- stantly be managed and which is not using XDMCP. Each con- sists of at least three parts: a display name, a display class, a display type, and (for local servers) a command line to start the server. A typical entry for local display number 0 would be: :0 Digital-QV local /usr/bin/X11/X :0 Rev. Release 5 Page 13 XDM(1) AIX XDM(1) The display types are: local local display: _x_d_m must run the server foreign remote display: _x_d_m opens an X connection to a running server The display name must be something that can be passed in the ----ddddiiiissssppppllllaaaayyyy option to an X program. This string is used to generate the display-specific resource names, so be careful to match the names (e.g. use ``:0 local /usr/bin/X11/X :0'' instead of ``localhost:0 local /usr/bin/X11/X :0'' if your other resources are specified as ``DisplayManager._0.session''). The display class portion is also used in the display-specific resources, as the class of the resource. This is useful if you have a large collec- tion of similar displays (like a corral of X terminals) and would like to set resources for groups of them. When using XDMCP, the display is required to specify the display class, so the manual for your particular X terminal should document the display class string for your device. If it doesn't, you can run _x_d_m in debug mode and look at the resource strings which it generates for that device, which will include the class string. SETUP PROGRAM The _X_s_e_t_u_p file is run after the server is reset, but before the Login window is offered. The file is typically a shell script. It is run as root, so should be careful about secu- rity. This is the place to change the root background or bring up other windows that should appear on the screen along with the Login widget. In addition to any specified by DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....eeeexxxxppppoooorrrrttttLLLLiiiisssstttt, the following environment variables are passed: DISPLAY the associated display name PATH the value of DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ssssyyyysssstttteeeemmmmPPPPaaaatttthhhh SHELL the value of DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ssssyyyysssstttteeeemmmmSSSShhhheeeellllllll XAUTHORITY may be set to an authority file Note that since _x_d_m grabs the keyboard, any other windows will not be able to receive keyboard input. They will be able to interact with the mouse, however; beware of poten- tial security holes here. If DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ggggrrrraaaabbbbSSSSeeeerrrrvvvveeeerrrr is set, _X_s_e_t_u_p will not be able to connect to the display at all. Resources for this program can be put into the file named by DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....rrrreeeessssoooouuuurrrrcccceeeessss. AUTHENTICATION WIDGET The authentication widget reads a name/password pair from the keyboard. Nearly every imaginable parameter can be con- trolled with a resource. Resources for this widget should Rev. Release 5 Page 14 XDM(1) AIX XDM(1) be put into the file named by DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....rrrreeeessssoooouuuurrrrcccceeeessss. All of these have reason- able default values, so it is not necessary to specify any of them. xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....yyyy xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....wwwwiiiiddddtttthhhh,,,, xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....hhhheeeeiiiigggghhhhtttt,,,, xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....xxxx,,,, The geometry of the Login widget is normally computed automatically. If you wish to position it elsewhere, specify each of these resources. xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....ffffoooorrrreeeeggggrrrroooouuuunnnndddd The color used to display the typed-in user name. xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....ffffoooonnnntttt The font used to display the typed-in user name. xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....ggggrrrreeeeeeeettttiiiinnnngggg A string which identifies this window. The default is ``X Window System.'' xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....uuuunnnnsssseeeeccccuuuurrrreeeeGGGGrrrreeeeeeeettttiiiinnnngggg When X authorization is requested in the configuration file for this display and none is in use, this greeting replaces the standard greeting. The default is ``This is an unsecure session'' xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....ggggrrrreeeeeeeettttFFFFoooonnnntttt The font used to display the greeting. xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....ggggrrrreeeeeeeettttCCCCoooolllloooorrrr The color used to display the greeting. xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....nnnnaaaammmmeeeePPPPrrrroooommmmpppptttt The string displayed to prompt for a user name. _X_r_d_b strips trailing white space from resource values, so to add spaces at the end of the prompt (usually a nice thing), add spaces escaped with backslashes. The default is ``Login: '' xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....ppppaaaasssssssswwwwddddPPPPrrrroooommmmpppptttt The string displayed to prompt for a password. The default is ``Password: '' xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....pppprrrroooommmmppppttttFFFFoooonnnntttt The font used to display both prompts. xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....pppprrrroooommmmppppttttCCCCoooolllloooorrrr The color used to display both prompts. xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....ffffaaaaiiiillll A message which is displayed when the authentication fails. The default is ``Login incorrect'' Rev. Release 5 Page 15 XDM(1) AIX XDM(1) xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....ffffaaaaiiiillllFFFFoooonnnntttt The font used to display the failure message. xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....ffffaaaaiiiillllCCCCoooolllloooorrrr The color used to display the failure message. xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....ffffaaaaiiiillllTTTTiiiimmmmeeeeoooouuuutttt The number of seconds that the failure message is displayed. The default is 30. xxxxllllooooggggiiiinnnn....LLLLooooggggiiiinnnn....ttttrrrraaaannnnssssllllaaaattttiiiioooonnnnssss This specifies the translations used for the login widget. Refer to the X Toolkit documentation for a complete discussion on translations. The default translation table is: CtrlH: delete-previous-character() \n\ CtrlD: delete-character() \n\ CtrlB: move-backward-character() \n\ CtrlF: move-forward-character() \n\ CtrlA: move-to-begining() \n\ CtrlE: move-to-end() \n\ CtrlK: erase-to-end-of-line() \n\ CtrlU: erase-line() \n\ CtrlX: erase-line() \n\ CtrlC: restart-session() \n\ Ctrl\\: abort-session() \n\ BackSpace:delete-previous-character() \n\ Delete: delete-previous-character() \n\ Return: finish-field() \n\ : insert-char() \ The actions which are supported by the widget are: delete-previous-character Erases the character before the cursor. delete-character Erases the character after the cursor. move-backward-character Moves the cursor backward. move-forward-character Moves the cursor forward. move-to-begining (Apologies about the spelling error.) Moves the cursor to the beginning of the editable text. move-to-end Moves the cursor to the end of the editable text. Rev. Release 5 Page 16 XDM(1) AIX XDM(1) erase-to-end-of-line Erases all text after the cursor. erase-line Erases the entire text. finish-field If the cursor is in the name field, proceeds to the password field; if the cursor is in the password field, checks the current name/password pair. If the name/password pair is valid, _x_d_m starts the session. Otherwise the failure message is displayed and the user is prompted again. abort-session Terminates and restarts the server. abort-display Terminates the server, disabling it. This is a rash action and is not accessible in the default configura- tion. It can be used to stop _x_d_m when shutting the system down or when using _x_d_m_s_h_e_l_l. restart-session Resets the X server and starts a new session. This can be used when the resources have been changed and you want to test them or when the screen has been overwrit- ten with system messages. insert-char Inserts the character typed. set-session-argument Specifies a single word argument which is passed to the session at startup. See the sections SSSSeeeessssssssiiiioooonnnn PPPPrrrrooooggggrrrraaaammmm and TTTTyyyyppppiiiiccccaaaallll UUUUssssaaaaggggeeee. allow-all-access Disables access control in the server. This can be used when the .Xauthority file cannot be created by _x_d_m. Be very careful using this; it might be better to disconnect the machine from the network before doing this. STARTUP PROGRAM The _X_s_t_a_r_t_u_p file is typically a shell script. It is run as root and should be very careful about security. This is the place to put commands which add entries to /_e_t_c/_u_t_m_p, mount users' home directories from file servers, display the mes- sage of the day, or abort the session if logins are not allowed. In addition to any specified by DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....eeeexxxxppppoooorrrrttttLLLLiiiisssstttt, Rev. Release 5 Page 17 XDM(1) AIX XDM(1) the following environment variables are passed: DISPLAY the associated display name HOME the initial working directory of the user USER the user name PATH the value of DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ssssyyyysssstttteeeemmmmPPPPaaaatttthhhh SHELL the value of DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....ssssyyyysssstttteeeemmmmSSSShhhheeeellllllll XAUTHORITY may be set to an authority file No arguments are passed to the script. _X_d_m waits until this script exits before starting the user session. If the exit value of this script is non-zero, _x_d_m discontinues the ses- sion and starts another authentication cycle. SESSION PROGRAM The _X_s_e_s_s_i_o_n program is the command which is run as the user's session. It is run with the permissions of the authorized user. In addition to any specified by DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....eeeexxxxppppoooorrrrttttLLLLiiiisssstttt, the following environment variables are passed: DISPLAY the associated display name HOME the initial working directory of the user USER the user name PATH the value of DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....uuuusssseeeerrrrPPPPaaaatttthhhh SHELL the user's default shell (from _g_e_t_p_w_n_a_m) XAUTHORITY may be set to a non-standard authority file At most installations, _X_s_e_s_s_i_o_n should look in $HOME for a file ._x_s_e_s_s_i_o_n, which contains commands that each user would like to use as a session. _X_s_e_s_s_i_o_n should also implement a system default session if no user-specified session exists. See the section TTTTyyyyppppiiiiccccaaaallll UUUUssssaaaaggggeeee. An argument may be passed to this program from the authenti- cation widget using the `set-session-argument' action. This can be used to select different styles of session. One good use of this feature is to allow the user to escape from the ordinary session when it fails. This allows users to repair their own ._x_s_e_s_s_i_o_n if it fails, without requiring adminis- trative intervention. The section TTTTyyyyppppiiiiccccaaaallll UUUUssssaaaaggggeeee demon- strates this feature. RESET PROGRAM Symmetrical with _X_s_t_a_r_t_u_p, the _X_r_e_s_e_t script is run after the user session has terminated. Run as root, it should contain commands that undo the effects of commands in _X_s_t_a_r_t_u_p, removing entries from /_e_t_c/_u_t_m_p or unmounting directories from file servers. The environment variables that were passed to _X_s_t_a_r_t_u_p are also passed to _X_r_e_s_e_t. Rev. Release 5 Page 18 XDM(1) AIX XDM(1) CONTROLLING THE SERVER _X_d_m controls local servers using POSIX signals. SIGHUP is expected to reset the server, closing all client connections and performing other cleanup duties. SIGTERM is expected to terminate the server. If these signals do not perform the expected actions, the resources DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....rrrreeeesssseeeettttSSSSiiiiggggnnnnaaaallll and DDDDiiiissssppppllllaaaayyyyMMMMaaaannnnaaaaggggeeeerrrr....DDDDIIIISSSSPPPPLLLLAAAAYYYY....tttteeeerrrrmmmmSSSSiiiiggggnnnnaaaallll can specify alternate sig- nals. To control remote terminals not using XDMCP, _x_d_m searches the window hierarchy on the display and uses the protocol request KillClient in an attempt to clean up the terminal for the next session. This may not actually kill all of the clients, as only those which have created windows will be noticed. XDMCP provides a more sure mechanism; when _x_d_m closes its initial connection, the session is over and the terminal is required to close all other connections. CONTROLLING XDM _X_d_m responds to two signals: SIGHUP and SIGTERM. When sent a SIGHUP, _x_d_m rereads the configuration file, the access control file, and the servers file. For the servers file, it notices if entries have been added or removed. If a new entry has been added, _x_d_m starts a session on the associated display. Entries which have been removed are disabled immediately, meaning that any session in progress will be terminated without notice and no new session will be started. When sent a SIGTERM, _x_d_m terminates all sessions in progress and exits. This can be used when shutting down the system. _X_d_m attempts to mark its various sub-processes for _p_s(1) by editing the command line argument list in place. Because _x_d_m can't allocate additional space for this task, it is useful to start _x_d_m with a reasonably long command line (using the full path name should be enough). Each process which is servicing a display is marked ----_d_i_s_p_l_a_y. OTHER POSSIBILITIES You can use _x_d_m to run a single session at a time, using the 4.3 _i_n_i_t options or other suitable daemon by specifying the server on the command line: xdm -server ":0 SUN-3/60CG4 local /usr/bin/X :0" Or, you might have a file server and a collection of X ter- minals. The configuration for this is identical to the sam- ple above, except the _X_s_e_r_v_e_r_s file would look like extol:0 VISUAL-19 foreign Rev. Release 5 Page 19 XDM(1) AIX XDM(1) exalt:0 NCD-19 foreign explode:0 NCR-TOWERVIEW3000 foreign This directs _x_d_m to manage sessions on all three of these terminals. See the section CCCCoooonnnnttttrrrroooolllllllliiiinnnngggg XXXXddddmmmm for a descrip- tion of using signals to enable and disable these terminals in a manner reminiscent of _i_n_i_t(8). LIMITATIONS One thing that _x_d_m isn't very good at doing is coexisting with other window systems. To use multiple window systems on the same hardware, you'll probably be more interested in _x_i_n_i_t. FILES /_u_s_r/_l_i_b/_X_1_1/_x_d_m/_x_d_m-_c_o_n_f_i_g the default configuration file /_u_s_r/_l_i_b/_X_1_1/_x_d_m/_X_a_c_c_e_s_s the default access file, listing author- ized displays /_u_s_r/_l_i_b/_X_1_1/_x_d_m/_X_s_e_r_v_e_r_s the default server file, listing non- XDMCP servers to manage $(_H_O_M_E)/._X_a_u_t_h_o_r_i_t_y user authorization file where _x_d_m stores keys for clients to read /_u_s_r/_l_i_b/_X_1_1/_x_d_m/_c_h_o_o_s_e_r the default chooser /_u_s_r/_b_i_n/_X_1_1/_x_r_d_b the default resource database loader /_u_s_r/_b_i_n/_X_1_1/_X the default server /_u_s_r/_b_i_n/_X_1_1/_x_t_e_r_m the default session program and failsafe client /_u_s_r/_l_i_b/_X_1_1/_x_d_m/_A<_h_o_s_t>-<_s_u_f_f_i_x> the default place for authorization files SEE ALSO _X(1), _x_i_n_i_t(1), _x_a_u_t_h(1), _X_s_e_c_u_r_i_t_y(1), and XDMCP COPYRIGHT Copyright 1988, Massachusetts Institute of Technology. See _X(1) for a full statement of rights and permissions. AUTHOR Keith Packard, MIT X Consortium Rev. Release 5 Page 20