~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to doc/kdm/kdmrc-ref.docbook

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- generated from ../../kdm/config.def - DO NOT EDIT! -->
 
2
 
 
3
<chapter id="kdm-files">
 
4
<title>The Files &kdm; Uses for Configuration</title>
 
5
 
 
6
<para>This chapter documents the files that control &kdm;'s behavior.
 
7
Some of this can be also controlled from the &systemsettings; module, but
 
8
not all.</para>
 
9
 
 
10
<sect1 id="kdmrc">
 
11
<title>&kdmrc; - The &kdm; master configuration file</title>
 
12
 
 
13
<para>The basic format of the file is <quote>INI-like</quote>.
 
14
Options are key/value pairs, placed in sections.
 
15
Everything in the file is case sensitive.
 
16
Syntactic errors and unrecognized key/section identifiers cause &kdm; to
 
17
issue non-fatal error messages.</para>
 
18
 
 
19
<para>Lines beginning with <literal>#</literal> are comments; empty lines
 
20
are ignored as well.</para>
 
21
 
 
22
<para>Sections are denoted by
 
23
<literal>[</literal><replaceable>Name of Section</replaceable><literal>]</literal>.
 
24
</para>
 
25
 
 
26
<para>You can configure every X-display individually.</para>
 
27
<para>Every display has a display name, which consists of a host name
 
28
(which is empty for local displays specified in <option>StaticServers</option>
 
29
or <option>ReserveServers</option>), a colon, and a display number.
 
30
Additionally, a display belongs to a
 
31
display class (which can be ignored in most cases).</para>
 
32
 
 
33
<para>Sections with display-specific settings have the formal syntax
 
34
<literal>[X-</literal>&nbsp;<replaceable>host</replaceable>&nbsp;[&nbsp;<literal>:</literal>&nbsp;<replaceable>number</replaceable>&nbsp;[&nbsp;<literal>_</literal>&nbsp;<replaceable>class</replaceable>&nbsp;]&nbsp;]&nbsp;<literal>-</literal>&nbsp;<replaceable>sub-section</replaceable>&nbsp;<literal>]</literal>
 
35
</para>
 
36
<para>All sections with the same <replaceable>sub-section</replaceable>
 
37
make up a section class.</para>
 
38
 
 
39
<para>You can use the wildcard <literal>*</literal> (match any) for
 
40
<replaceable>host</replaceable>, <replaceable>number</replaceable>, 
 
41
and <replaceable>class</replaceable>. You may omit trailing components;
 
42
they are assumed to be <literal>*</literal> then. The host part may be a
 
43
domain specification like <replaceable>.inf.tu-dresden.de</replaceable>
 
44
or the wildcard <literal>+</literal> (match non-empty).</para>
 
45
 
 
46
<para>From which section a setting is actually taken is determined by
 
47
these rules:</para>
 
48
 
 
49
<itemizedlist>
 
50
<listitem>
 
51
<para>An exact match takes precedence over a partial match (for the
 
52
host part), which in turn takes precedence over a wildcard
 
53
(<literal>+</literal> taking precendence over <literal>*</literal>).</para>
 
54
</listitem>
 
55
 
 
56
<listitem>
 
57
<para>Precedence decreases from left to right for equally exact matches.</para>
 
58
</listitem>
 
59
 
 
60
<listitem>
 
61
 
 
62
<para>
 
63
Example: display name <quote>myhost.foo:0</quote>, class <quote>dpy</quote>
 
64
</para>
 
65
<itemizedlist>
 
66
<listitem>
 
67
<para>[X-myhost.foo:0_dpy] precedes</para>
 
68
</listitem>
 
69
<listitem>
 
70
<para>[X-myhost.foo:0_*] (same as [X-myhost.foo:0]) precedes</para>
 
71
</listitem>
 
72
<listitem>
 
73
<para>[X-myhost.foo:*_dpy] precedes</para>
 
74
</listitem>
 
75
<listitem>
 
76
<para>[X-myhost.foo:*_*] (same as [X-myhost.foo]) precedes</para>
 
77
</listitem>
 
78
<listitem>
 
79
<para>[X-.foo:*_*] (same as [X-.foo]) precedes</para>
 
80
</listitem>
 
81
<listitem>
 
82
<para>[X-+:0_dpy] precedes</para>
 
83
</listitem>
 
84
<listitem>
 
85
<para>[X-*:0_dpy] precedes</para>
 
86
</listitem>
 
87
<listitem>
 
88
<para>[X-*:0_*] (same as [X-*:0]) precedes</para>
 
89
</listitem>
 
90
<listitem>
 
91
<para>[X-*:*_*] (same as [X-*]).</para>
 
92
</listitem>
 
93
<listitem>
 
94
<para>These sections do <emphasis>not</emphasis> match this display:</para>
 
95
<para>[X-hishost], [X-myhost.foo:0_dec], [X-*:1], [X-:*]</para>
 
96
</listitem>
 
97
</itemizedlist>
 
98
 
 
99
</listitem>
 
100
 
 
101
</itemizedlist>
 
102
 
 
103
<para>Common sections are [X-*] (all displays), [X-:*] (all local displays)
 
104
and [X-:0] (the first local display).</para>
 
105
 
 
106
<para>The format for all keys is
 
107
<userinput><option><replaceable>key</replaceable></option>&nbsp;<literal>=</literal>&nbsp;<parameter>value</parameter></userinput>.
 
108
Keys are only valid in the section class they are defined for.
 
109
Some keys do not apply to particular displays, in which case they are ignored.
 
110
</para>
 
111
 
 
112
<para>If a setting is not found in any matching section, the default
 
113
is used.</para>
 
114
 
 
115
<para>Special characters need to be backslash-escaped (leading and trailing
 
116
spaces (<literal>\s</literal>), tab (<literal>\t</literal>), linefeed
 
117
(<literal>\n</literal>), carriage return (<literal>\r</literal>) and the
 
118
backslash itself (<literal>\\</literal>)).</para>
 
119
<para>In lists, fields are separated with commas without whitespace in between.
 
120
</para>
 
121
<para>Some command strings are subject to simplified sh-style word splitting:
 
122
single quotes (<literal>'</literal>) and double quotes (<literal>"</literal>)
 
123
have the usual meaning; the backslash quotes everything (not only special
 
124
characters). Note that the backslashes need to be doubled because of the
 
125
two levels of quoting.</para>
 
126
 
 
127
<note><para>A pristine &kdmrc; is very thoroughly commented.
 
128
All comments will be lost if you change this file with the
 
129
&systemsettings; frontend.</para></note>
 
130
 
 
131
 
 
132
<sect2 id="kdmrc-general">
 
133
<title>The [General] section of &kdmrc;</title>
 
134
 
 
135
<para>
 
136
This section contains global options that do not fit into any specific section.
 
137
</para>
 
138
 
 
139
<variablelist>
 
140
 
 
141
<varlistentry>
 
142
<term id="option-configversion"><option>ConfigVersion</option></term>
 
143
<listitem>
 
144
<para>
 
145
This option exists solely for the purpose of clean automatic upgrades.
 
146
<emphasis>Do not</emphasis> change it, you may interfere with future
 
147
upgrades and this could result in &kdm; failing to run.
 
148
</para>
 
149
</listitem>
 
150
</varlistentry>
 
151
 
 
152
<varlistentry>
 
153
<term id="option-staticservers"><option>StaticServers</option></term>
 
154
<listitem>
 
155
<para>
 
156
List of displays (&X-Server;s) permanently managed by &kdm;. Displays with a
 
157
hostname are foreign displays which are expected to be already running,
 
158
the others are local displays for which &kdm; starts an own &X-Server;;
 
159
see <option>ServerCmd</option>. Each display may belong to a display class;
 
160
append it to the display name separated by an underscore.
 
161
See <xref linkend="kdmrc-xservers"/> for the details.
 
162
</para>
 
163
<para>The default is <quote>:0</quote>.</para>
 
164
</listitem>
 
165
</varlistentry>
 
166
 
 
167
<varlistentry>
 
168
<term id="option-reserveservers"><option>ReserveServers</option></term>
 
169
<listitem>
 
170
<para>
 
171
List of on-demand displays. See <option>StaticServers</option> for syntax.
 
172
</para>
 
173
<para>Empty by default.</para>
 
174
</listitem>
 
175
</varlistentry>
 
176
 
 
177
<varlistentry>
 
178
<term id="option-servervts"><option>ServerVTs</option></term>
 
179
<listitem>
 
180
<para>
 
181
List of Virtual Terminals to allocate to &X-Server;s. For negative numbers the
 
182
absolute value is used, and the <acronym>VT</acronym> will be allocated only
 
183
if the kernel says it is free. If &kdm; exhausts this list, it will allocate
 
184
free <acronym>VT</acronym>s greater than the absolute value of the last entry
 
185
in this list.
 
186
Currently Linux only.
 
187
</para>
 
188
<para>Empty by default.</para>
 
189
</listitem>
 
190
</varlistentry>
 
191
 
 
192
<varlistentry>
 
193
<term id="option-consolettys"><option>ConsoleTTYs</option></term>
 
194
<listitem>
 
195
<para>
 
196
This option is for operating systems (<acronym>OS</acronym>s) with support
 
197
for virtual terminals (<acronym>VT</acronym>s), by both &kdm; and the
 
198
<acronym>OS</acronym>s itself.
 
199
Currently this applies only to Linux.
 
200
</para><para>
 
201
When &kdm; switches to console mode, it starts monitoring all
 
202
<acronym>TTY</acronym> lines listed here (without the leading
 
203
<literal>/dev/</literal>).
 
204
If none of them is active for some time, &kdm; switches back to the X login.
 
205
</para>
 
206
<para>Empty by default.</para>
 
207
</listitem>
 
208
</varlistentry>
 
209
 
 
210
<varlistentry>
 
211
<term id="option-pidfile"><option>PidFile</option></term>
 
212
<listitem>
 
213
<para>
 
214
The filename specified will be created to contain an ASCII representation
 
215
of the process ID of the main &kdm; process; the PID will not be stored
 
216
if the filename is empty.
 
217
</para>
 
218
<para>Empty by default.</para>
 
219
</listitem>
 
220
</varlistentry>
 
221
 
 
222
<varlistentry>
 
223
<term id="option-lockpidfile"><option>LockPidFile</option></term>
 
224
<listitem>
 
225
<para>
 
226
This option controls whether &kdm; uses file locking to keep multiple
 
227
display managers from running onto each other.
 
228
</para>
 
229
<para>The default is <quote>true</quote>.</para>
 
230
</listitem>
 
231
</varlistentry>
 
232
 
 
233
<varlistentry>
 
234
<term id="option-authdir"><option>AuthDir</option></term>
 
235
<listitem>
 
236
<para>
 
237
This names a directory under which &kdm; stores &X-Server; authorization
 
238
files while initializing the session. &kdm; expects the system to clean up
 
239
this directory from stale files on reboot.
 
240
</para><para>
 
241
The authorization file to be used for a particular display can be
 
242
specified with the <option>AuthFile</option> option in [X-*-Core].
 
243
</para>
 
244
<para>The default is <quote>/var/run/xauth</quote>.</para>
 
245
</listitem>
 
246
</varlistentry>
 
247
 
 
248
<varlistentry>
 
249
<term id="option-autorescan"><option>AutoRescan</option></term>
 
250
<listitem>
 
251
<para>
 
252
This boolean controls whether &kdm; automatically re-reads its
 
253
configuration files if it finds them to have changed.
 
254
</para>
 
255
<para>The default is <quote>true</quote>.</para>
 
256
</listitem>
 
257
</varlistentry>
 
258
 
 
259
<varlistentry>
 
260
<term id="option-exportlist"><option>ExportList</option></term>
 
261
<listitem>
 
262
<para>
 
263
Additional environment variables &kdm; should pass on to all programs it runs.
 
264
<envar>LD_LIBRARY_PATH</envar> and <envar>XCURSOR_THEME</envar> are good candidates;
 
265
otherwise, it should not be necessary very often.
 
266
</para>
 
267
<para>Empty by default.</para>
 
268
</listitem>
 
269
</varlistentry>
 
270
 
 
271
<varlistentry>
 
272
<term id="option-randomfile"><option>RandomFile</option></term>
 
273
<listitem>
 
274
<para>
 
275
If the system has no native entropy source like /dev/urandom (see
 
276
<option>RandomDevice</option>) and no entropy daemon like EGD (see
 
277
<option>PrngdSocket</option> and <option>PrngdPort</option>) is running,
 
278
&kdm; will fall back to its own pseudo-random number generator
 
279
that will, among other things, successively checksum parts of this file
 
280
(which, obviously, should change frequently).
 
281
</para><para>
 
282
This option does not exist on Linux and various BSDs.
 
283
</para>
 
284
<para>The default is <quote>/dev/mem</quote>.</para>
 
285
</listitem>
 
286
</varlistentry>
 
287
 
 
288
<varlistentry>
 
289
<term id="option-prngdsocket"><option>PrngdSocket</option></term>
 
290
<listitem>
 
291
<para>
 
292
If the system has no native entropy source like /dev/urandom (see
 
293
<option>RandomDevice</option>), read random data from a Pseudo-Random
 
294
Number Generator Daemon,
 
295
like EGD (http://egd.sourceforge.net) via this UNIX domain socket.
 
296
</para><para>
 
297
This option does not exist on Linux and various BSDs.
 
298
</para>
 
299
<para>Empty by default.</para>
 
300
</listitem>
 
301
</varlistentry>
 
302
 
 
303
<varlistentry>
 
304
<term id="option-prngdport"><option>PrngdPort</option></term>
 
305
<listitem>
 
306
<para>
 
307
Same as <option>PrngdSocket</option>, only use a TCP socket on localhost.
 
308
</para>
 
309
</listitem>
 
310
</varlistentry>
 
311
 
 
312
<varlistentry>
 
313
<term id="option-randomdevice"><option>RandomDevice</option></term>
 
314
<listitem>
 
315
<para>
 
316
The path to a character device which &kdm; should read random data from.
 
317
Empty means to use the system's preferred entropy device if there is one.
 
318
</para><para>
 
319
This option does not exist on OpenBSD, as it uses the arc4_random
 
320
function instead.
 
321
</para>
 
322
<para>Empty by default.</para>
 
323
</listitem>
 
324
</varlistentry>
 
325
 
 
326
<varlistentry>
 
327
<term id="option-fifodir"><option>FifoDir</option></term>
 
328
<listitem>
 
329
<para>
 
330
The directory in which the command sockets should
 
331
be created; make it empty to disable them.
 
332
</para>
 
333
<para>The default is <quote>/var/run/xdmctl</quote>.</para>
 
334
</listitem>
 
335
</varlistentry>
 
336
 
 
337
<varlistentry>
 
338
<term id="option-fifogroup"><option>FifoGroup</option></term>
 
339
<listitem>
 
340
<para>
 
341
The group to which the global command socket should belong;
 
342
can be either a name or a numerical ID.
 
343
</para>
 
344
</listitem>
 
345
</varlistentry>
 
346
 
 
347
<varlistentry>
 
348
<term id="option-greeteruid"><option>GreeterUID</option></term>
 
349
<listitem>
 
350
<para>
 
351
The user the greeter should run as. Empty results in <systemitem class="username">root</systemitem>.
 
352
Consider the impact on <option>LogSource</option> when setting it.
 
353
</para>
 
354
<para>Empty by default.</para>
 
355
</listitem>
 
356
</varlistentry>
 
357
 
 
358
<varlistentry>
 
359
<term id="option-datadir"><option>DataDir</option></term>
 
360
<listitem>
 
361
<para>
 
362
The directory in which &kdm; should store persistent working data; such data
 
363
is, for example, the previous user that logged in on a particular display.
 
364
</para>
 
365
<para>The default is <quote>/var/lib/kdm</quote>.</para>
 
366
</listitem>
 
367
</varlistentry>
 
368
 
 
369
<varlistentry>
 
370
<term id="option-dmrcdir"><option>DmrcDir</option></term>
 
371
<listitem>
 
372
<para>
 
373
The directory in which &kdm; should store users' <filename>.dmrc</filename> files. This is only
 
374
needed if the home directories are not readable before actually logging in
 
375
(like with AFS).
 
376
</para>
 
377
<para>Empty by default.</para>
 
378
</listitem>
 
379
</varlistentry>
 
380
 
 
381
</variablelist>
 
382
</sect2>
 
383
 
 
384
 
 
385
<sect2 id="kdmrc-xdmcp">
 
386
<title>The [Xdmcp] section of &kdmrc;</title>
 
387
 
 
388
<para>
 
389
This section contains options that control &kdm;'s handling of
 
390
&XDMCP; requests.
 
391
</para>
 
392
 
 
393
<variablelist>
 
394
 
 
395
<varlistentry>
 
396
<term id="option-enable"><option>Enable</option></term>
 
397
<listitem>
 
398
<para>
 
399
Whether &kdm; should listen to incoming &XDMCP; requests.
 
400
</para>
 
401
<para>The default is <quote>true</quote>.</para>
 
402
</listitem>
 
403
</varlistentry>
 
404
 
 
405
<varlistentry>
 
406
<term id="option-port"><option>Port</option></term>
 
407
<listitem>
 
408
<para>
 
409
This indicates the UDP port number which &kdm; uses to listen for incoming
 
410
&XDMCP; requests. Unless you need to debug the system, leave this with its
 
411
default value.
 
412
</para>
 
413
<para>The default is <quote>177</quote>.</para>
 
414
</listitem>
 
415
</varlistentry>
 
416
 
 
417
<varlistentry>
 
418
<term id="option-keyfile"><option>KeyFile</option></term>
 
419
<listitem>
 
420
<para>
 
421
XDM-AUTHENTICATION-1 style &XDMCP; authentication requires a private
 
422
key to be shared between &kdm; and the terminal. This option specifies
 
423
the file containing those values. Each entry in the file consists of a
 
424
display name and the shared key.
 
425
</para>
 
426
<para>Empty by default.</para>
 
427
</listitem>
 
428
</varlistentry>
 
429
 
 
430
<varlistentry>
 
431
<term id="option-xaccess"><option>Xaccess</option></term>
 
432
<listitem>
 
433
<para>
 
434
To prevent unauthorized &XDMCP; service and to allow forwarding of &XDMCP;
 
435
IndirectQuery requests, this file contains a database of hostnames which
 
436
are either allowed direct access to this machine, or have a list of hosts
 
437
to which queries should be forwarded to. The format of this file is
 
438
described in <xref linkend="kdmrc-xaccess"/>.
 
439
</para>
 
440
<para>The default is <quote>${<envar>kde_confdir</envar>}/kdm/Xaccess</quote>.</para>
 
441
</listitem>
 
442
</varlistentry>
 
443
 
 
444
<varlistentry>
 
445
<term id="option-choicetimeout"><option>ChoiceTimeout</option></term>
 
446
<listitem>
 
447
<para>
 
448
Number of seconds to wait for the display to respond after the user has
 
449
selected a host from the chooser. If the display sends an &XDMCP;
 
450
IndirectQuery within this time, the request is forwarded to the chosen
 
451
host; otherwise, it is assumed to be from a new session and the chooser
 
452
is offered again.
 
453
</para>
 
454
<para>The default is <quote>15</quote>.</para>
 
455
</listitem>
 
456
</varlistentry>
 
457
 
 
458
<varlistentry>
 
459
<term id="option-removedomainname"><option>RemoveDomainname</option></term>
 
460
<listitem>
 
461
<para>
 
462
When computing the display name for &XDMCP; clients, the name resolver will
 
463
typically create a fully qualified host name for the terminal. As this is
 
464
sometimes confusing, &kdm; will remove the domain name portion of the host
 
465
name if it is the same as the domain name of the local host when this option
 
466
is enabled.
 
467
</para>
 
468
<para>The default is <quote>true</quote>.</para>
 
469
</listitem>
 
470
</varlistentry>
 
471
 
 
472
<varlistentry>
 
473
<term id="option-sourceaddress"><option>SourceAddress</option></term>
 
474
<listitem>
 
475
<para>
 
476
Use the numeric IP address of the incoming connection on multihomed hosts
 
477
instead of the host name. This is to avoid trying to connect on the wrong
 
478
interface which might be down at this time.
 
479
</para>
 
480
<para>The default is <quote>false</quote>.</para>
 
481
</listitem>
 
482
</varlistentry>
 
483
 
 
484
<varlistentry>
 
485
<term id="option-willing"><option>Willing</option></term>
 
486
<listitem>
 
487
<para>
 
488
This specifies a program which is run (as
 
489
<systemitem class="username">root</systemitem>) when an &XDMCP;
 
490
DirectQuery or BroadcastQuery is received and this host is configured
 
491
to offer &XDMCP; display management. The output of this program may be
 
492
displayed in a chooser window. If no program is specified, the string
 
493
<quote>Willing to manage</quote> is sent.
 
494
</para>
 
495
<para>Empty by default.</para>
 
496
</listitem>
 
497
</varlistentry>
 
498
 
 
499
</variablelist>
 
500
</sect2>
 
501
 
 
502
 
 
503
<sect2 id="kdmrc-shutdown">
 
504
<title>The [Shutdown] section of &kdmrc;</title>
 
505
 
 
506
<para>
 
507
This section contains global options concerning system shutdown.
 
508
</para>
 
509
 
 
510
<variablelist>
 
511
 
 
512
<varlistentry>
 
513
<term id="option-haltcmd"><option>HaltCmd</option></term>
 
514
<listitem>
 
515
<para>
 
516
The command (subject to word splitting) to run to halt/poweroff the system.
 
517
</para><para>
 
518
The default is something reasonable for the system on which &kdm; was built, like
 
519
<command>/sbin/shutdown&nbsp;<option>-h</option>&nbsp;<parameter>now</parameter></command>.
 
520
</para>
 
521
</listitem>
 
522
</varlistentry>
 
523
 
 
524
<varlistentry>
 
525
<term id="option-rebootcmd"><option>RebootCmd</option></term>
 
526
<listitem>
 
527
<para>
 
528
The command (subject to word splitting) to run to reboot the system.
 
529
</para><para>
 
530
The default is something reasonable for the system &kdm; on which was built, like
 
531
<command>/sbin/shutdown&nbsp;<option>-r</option>&nbsp;<parameter>now</parameter></command>.
 
532
</para>
 
533
</listitem>
 
534
</varlistentry>
 
535
 
 
536
<varlistentry>
 
537
<term id="option-allowfifo"><option>AllowFifo</option></term>
 
538
<listitem>
 
539
<para>
 
540
Whether it is allowed to shut down the system via the global command socket.
 
541
</para>
 
542
<para>The default is <quote>false</quote>.</para>
 
543
</listitem>
 
544
</varlistentry>
 
545
 
 
546
<varlistentry>
 
547
<term id="option-allowfifonow"><option>AllowFifoNow</option></term>
 
548
<listitem>
 
549
<para>
 
550
Whether it is allowed to abort active sessions when shutting down the
 
551
system via the global command socket.
 
552
</para><para>
 
553
This will have no effect unless <option>AllowFifo</option> is enabled.
 
554
</para>
 
555
<para>The default is <quote>true</quote>.</para>
 
556
</listitem>
 
557
</varlistentry>
 
558
 
 
559
<varlistentry>
 
560
<term id="option-bootmanager"><option>BootManager</option></term>
 
561
<listitem>
 
562
<para>
 
563
The boot manager &kdm; should use for offering boot options in the
 
564
shutdown dialog.
 
565
</para>
 
566
<variablelist>
 
567
<varlistentry>
 
568
<term><parameter>None</parameter></term>
 
569
<listitem><para>no boot manager</para></listitem>
 
570
</varlistentry>
 
571
<varlistentry>
 
572
<term><parameter>Grub</parameter></term>
 
573
<listitem><para>Grub boot manager</para></listitem>
 
574
</varlistentry>
 
575
<varlistentry>
 
576
<term><parameter>Lilo</parameter></term>
 
577
<listitem><para>Lilo boot manager (Linux on i386 &amp; x86-64 only)</para></listitem>
 
578
</varlistentry>
 
579
</variablelist>
 
580
<para>The default is <quote>None</quote>.</para>
 
581
</listitem>
 
582
</varlistentry>
 
583
 
 
584
</variablelist>
 
585
</sect2>
 
586
 
 
587
 
 
588
<sect2 id="kdmrc-core">
 
589
<title>The [X-*-Core] section class of &kdmrc;</title>
 
590
 
 
591
<para>
 
592
This section class contains options concerning the configuration
 
593
of the &kdm; backend (core).
 
594
</para>
 
595
 
 
596
<variablelist>
 
597
 
 
598
<varlistentry>
 
599
<term id="option-opendelay"><option>OpenDelay</option></term>
 
600
<listitem>
 
601
<para>
 
602
See <option>OpenRepeat</option>.
 
603
</para>
 
604
<para>The default is <quote>15</quote>.</para>
 
605
</listitem>
 
606
</varlistentry>
 
607
 
 
608
<varlistentry>
 
609
<term id="option-opentimeout"><option>OpenTimeout</option></term>
 
610
<listitem>
 
611
<para>
 
612
See <option>OpenRepeat</option>.
 
613
</para>
 
614
<para>The default is <quote>120</quote>.</para>
 
615
</listitem>
 
616
</varlistentry>
 
617
 
 
618
<varlistentry>
 
619
<term id="option-openrepeat"><option>OpenRepeat</option></term>
 
620
<listitem>
 
621
<para>
 
622
These options control the behavior of &kdm; when attempting to open a
 
623
connection to an &X-Server;. <option>OpenDelay</option> is the length
 
624
of the pause (in seconds) between successive attempts,
 
625
<option>OpenRepeat</option> is the number of attempts to make and
 
626
<option>OpenTimeout</option> is the amount of time to spend on a
 
627
connection attempt. After <option>OpenRepeat</option> attempts have been
 
628
made, or if <option>OpenTimeout</option> seconds elapse in any particular
 
629
connection attempt, the start attempt is considered failed.
 
630
</para>
 
631
<para>The default is <quote>5</quote>.</para>
 
632
</listitem>
 
633
</varlistentry>
 
634
 
 
635
<varlistentry>
 
636
<term id="option-startattempts"><option>StartAttempts</option></term>
 
637
<listitem>
 
638
<para>
 
639
How many times &kdm; should attempt to start a <literal>foreign</literal>
 
640
display listed in <option>StaticServers</option> before giving up
 
641
and disabling it.
 
642
Local displays are attempted only once, and &XDMCP; displays are retried
 
643
indefinitely by the client (unless the option <option>-once</option>
 
644
was given to the &X-Server;).
 
645
</para>
 
646
<para>The default is <quote>4</quote>.</para>
 
647
</listitem>
 
648
</varlistentry>
 
649
 
 
650
<varlistentry>
 
651
<term id="option-serverattempts"><option>ServerAttempts</option></term>
 
652
<listitem>
 
653
<para>
 
654
How many times &kdm; should attempt to start up a local &X-Server;.
 
655
Starting up includes executing it and waiting for it to come up.
 
656
</para>
 
657
<para>The default is <quote>1</quote>.</para>
 
658
</listitem>
 
659
</varlistentry>
 
660
 
 
661
<varlistentry>
 
662
<term id="option-servertimeout"><option>ServerTimeout</option></term>
 
663
<listitem>
 
664
<para>
 
665
How many seconds &kdm; should wait for a local &X-Server; to come up.
 
666
</para>
 
667
<para>The default is <quote>30</quote>.</para>
 
668
</listitem>
 
669
</varlistentry>
 
670
 
 
671
<varlistentry>
 
672
<term id="option-servercmd"><option>ServerCmd</option></term>
 
673
<listitem>
 
674
<para>
 
675
The command line to start the &X-Server;, without display number and VT spec.
 
676
Note that with some &X-Server;s (in particular, OpenSolaris') it is necessary
 
677
to put most additional arguments into <option>ServerArgsLocal</option> and
 
678
<option>ServerArgsRemote</option> even if they are the same for both.
 
679
This string is subject to word splitting.
 
680
</para><para>
 
681
The default is something reasonable for the system on which &kdm; was built,
 
682
like <command>/usr/X11R6/bin/X</command>.
 
683
</para>
 
684
</listitem>
 
685
</varlistentry>
 
686
 
 
687
<varlistentry>
 
688
<term id="option-serverargslocal"><option>ServerArgsLocal</option></term>
 
689
<listitem>
 
690
<para>
 
691
Additional arguments for the &X-Server;s for local sessions.
 
692
This string is subject to word splitting.
 
693
</para>
 
694
<para>Empty by default.</para>
 
695
</listitem>
 
696
</varlistentry>
 
697
 
 
698
<varlistentry>
 
699
<term id="option-serverargsremote"><option>ServerArgsRemote</option></term>
 
700
<listitem>
 
701
<para>
 
702
Additional arguments for the &X-Server;s for remote sessions.
 
703
This string is subject to word splitting.
 
704
</para>
 
705
<para>Empty by default.</para>
 
706
</listitem>
 
707
</varlistentry>
 
708
 
 
709
<varlistentry>
 
710
<term id="option-servervt"><option>ServerVT</option></term>
 
711
<listitem>
 
712
<para>
 
713
The VT the &X-Server; should run on.
 
714
<option>ServerVTs</option> should be used instead of this option.
 
715
Leave it zero to let &kdm; assign a <acronym>VT</acronym> automatically.
 
716
Set it to <literal>-1</literal> to avoid assigning a <acronym>VT</acronym>
 
717
alltogether - this is required for setups with multiple physical consoles.
 
718
Currently Linux only.
 
719
</para>
 
720
</listitem>
 
721
</varlistentry>
 
722
 
 
723
<varlistentry>
 
724
<term id="option-servertty"><option>ServerTTY</option></term>
 
725
<listitem>
 
726
<para>
 
727
This option is for <acronym>OS</acronym>s without support for
 
728
<acronym>VT</acronym>s, either by &kdm; or the <acronym>OS</acronym> itself.
 
729
Currently this applies to all <acronym>OS</acronym>s but Linux.
 
730
</para><para>
 
731
When &kdm; switches to console mode, it starts monitoring this
 
732
<acronym>TTY</acronym> line (specified without the leading
 
733
<literal>/dev/</literal>) for activity. If the line is not used for some time,
 
734
&kdm; switches back to the X login.
 
735
</para>
 
736
<para>Empty by default.</para>
 
737
</listitem>
 
738
</varlistentry>
 
739
 
 
740
<varlistentry>
 
741
<term id="option-serveruid"><option>ServerUID</option></term>
 
742
<listitem>
 
743
<para>
 
744
The user the &X-Server; should run as. Empty results in <systemitem class="username">root</systemitem>.
 
745
</para>
 
746
<para>Empty by default.</para>
 
747
</listitem>
 
748
</varlistentry>
 
749
 
 
750
<varlistentry>
 
751
<term id="option-pinginterval"><option>PingInterval</option></term>
 
752
<listitem>
 
753
<para>
 
754
See <option>PingTimeout</option>.
 
755
</para>
 
756
<para>The default is <quote>5</quote>.</para>
 
757
</listitem>
 
758
</varlistentry>
 
759
 
 
760
<varlistentry>
 
761
<term id="option-pingtimeout"><option>PingTimeout</option></term>
 
762
<listitem>
 
763
<para>
 
764
To discover when <emphasis>remote</emphasis> displays disappear, &kdm;
 
765
regularly pings them.
 
766
<option>PingInterval</option> specifies the time (in minutes) between the
 
767
pings and <option>PingTimeout</option> specifies the maximum amount of
 
768
time (in minutes) to wait for the terminal to respond to the request. If
 
769
the terminal does not respond, the session is declared dead and terminated.
 
770
</para><para>
 
771
If you frequently use X terminals which can become isolated from
 
772
the managing host, you may wish to increase the timeout. The only worry
 
773
is that sessions will continue to exist after the terminal has been
 
774
accidentally disabled.
 
775
</para>
 
776
<para>The default is <quote>5</quote>.</para>
 
777
</listitem>
 
778
</varlistentry>
 
779
 
 
780
<varlistentry>
 
781
<term id="option-terminateserver"><option>TerminateServer</option></term>
 
782
<listitem>
 
783
<para>
 
784
Whether &kdm; should restart the local &X-Server; after session exit instead
 
785
of resetting it. Use this if the &X-Server; leaks memory or crashes the system
 
786
on reset attempts.
 
787
</para>
 
788
<para>The default is <quote>false</quote>.</para>
 
789
</listitem>
 
790
</varlistentry>
 
791
 
 
792
<varlistentry>
 
793
<term id="option-authorize"><option>Authorize</option></term>
 
794
<listitem>
 
795
<para>
 
796
Controls whether &kdm; generates and uses authorization for
 
797
<emphasis>local</emphasis> &X-Server; connections.
 
798
For &XDMCP; displays the authorization requested by the display is used;
 
799
foreign non-&XDMCP; displays do not support authorization at all.
 
800
</para>
 
801
<para>The default is <quote>true</quote>.</para>
 
802
</listitem>
 
803
</varlistentry>
 
804
 
 
805
<varlistentry>
 
806
<term id="option-authnames"><option>AuthNames</option></term>
 
807
<listitem>
 
808
<para>
 
809
If <option>Authorize</option> is true, use the authorization mechanisms
 
810
listed herein. The MIT-MAGIC-COOKIE-1 authorization is always available;
 
811
XDM-AUTHORIZATION-1, SUN-DES-1 and MIT-KERBEROS-5 might be available as well,
 
812
depending on the build configuration.
 
813
</para>
 
814
<para>The default is <quote>DEF_AUTH_NAME</quote>.</para>
 
815
</listitem>
 
816
</varlistentry>
 
817
 
 
818
<varlistentry>
 
819
<term id="option-resetforauth"><option>ResetForAuth</option></term>
 
820
<listitem>
 
821
<para>
 
822
Some <emphasis>old</emphasis> &X-Server;s re-read the authorization file
 
823
at &X-Server; reset time, instead of when checking the initial connection.
 
824
As &kdm; generates the authorization information just before connecting to
 
825
the display, an old &X-Server; would not get up-to-date authorization
 
826
information. This option causes &kdm; to send SIGHUP to the &X-Server;
 
827
after setting up the file, causing an additional &X-Server; reset to occur,
 
828
during which time the new authorization information will be read.
 
829
</para>
 
830
<para>The default is <quote>false</quote>.</para>
 
831
</listitem>
 
832
</varlistentry>
 
833
 
 
834
<varlistentry>
 
835
<term id="option-authfile"><option>AuthFile</option></term>
 
836
<listitem>
 
837
<para>
 
838
This file is used to communicate the authorization data from &kdm; to
 
839
the &X-Server;, using the <option>-auth</option> &X-Server; command line
 
840
option. It should be kept in a directory which is not world-writable
 
841
as it could easily be removed, disabling the authorization mechanism in
 
842
the &X-Server;. If not specified, a random name is generated from
 
843
<option>AuthDir</option> and the name of the display.
 
844
</para>
 
845
<para>Empty by default.</para>
 
846
</listitem>
 
847
</varlistentry>
 
848
 
 
849
<varlistentry>
 
850
<term id="option-resources"><option>Resources</option></term>
 
851
<listitem>
 
852
<para>
 
853
This option specifies the name of the file to be loaded by
 
854
<command>xrdb</command> as the resource database onto the root window
 
855
of screen 0 of the display. KDE programs generally do not use
 
856
X-resources, so this option is only needed if the <option>Setup</option>
 
857
program needs some X-resources.
 
858
</para>
 
859
<para>Empty by default.</para>
 
860
</listitem>
 
861
</varlistentry>
 
862
 
 
863
<varlistentry>
 
864
<term id="option-xrdb"><option>Xrdb</option></term>
 
865
<listitem>
 
866
<para>
 
867
The <command>xrdb</command> program to use to read the X-resources file
 
868
specified in <option>Recources</option>.
 
869
The command is subject to word splitting.
 
870
</para>
 
871
<para>The default is <quote>${<envar>x_bindir</envar>}/xrdb</quote>.</para>
 
872
</listitem>
 
873
</varlistentry>
 
874
 
 
875
<varlistentry>
 
876
<term id="option-setup"><option>Setup</option></term>
 
877
<listitem>
 
878
<para>
 
879
This string is subject to word splitting.
 
880
It specifies a program which is run (as
 
881
<systemitem class="username">root</systemitem>) before offering the
 
882
greeter window. This may be used to change the appearance of the screen
 
883
around the greeter window or to put up other windows (e.g., you may want
 
884
to run <command>xconsole</command> here).
 
885
Usually, a script named <command>Xsetup</command> is used here.
 
886
See <xref linkend="kdmrc-xsetup"/>.
 
887
</para>
 
888
<para>Empty by default.</para>
 
889
</listitem>
 
890
</varlistentry>
 
891
 
 
892
<varlistentry>
 
893
<term id="option-startup"><option>Startup</option></term>
 
894
<listitem>
 
895
<para>
 
896
This string is subject to word splitting.
 
897
It specifies a program which is run (as
 
898
<systemitem class="username">root</systemitem>) after the user
 
899
authentication process succeeds.
 
900
Usually, a script named <command>Xstartup</command> is used here.
 
901
See <xref linkend="kdmrc-xstartup"/>.
 
902
</para>
 
903
<para>Empty by default.</para>
 
904
</listitem>
 
905
</varlistentry>
 
906
 
 
907
<varlistentry>
 
908
<term id="option-reset"><option>Reset</option></term>
 
909
<listitem>
 
910
<para>
 
911
This string is subject to word splitting.
 
912
It specifies a program which is run (as
 
913
<systemitem class="username">root</systemitem>) after the session
 
914
terminates.
 
915
Usually, a script named <command>Xreset</command> is used here.
 
916
See <xref linkend="kdmrc-xreset"/>.
 
917
</para>
 
918
<para>Empty by default.</para>
 
919
</listitem>
 
920
</varlistentry>
 
921
 
 
922
<varlistentry>
 
923
<term id="option-session"><option>Session</option></term>
 
924
<listitem>
 
925
<para>
 
926
This string is subject to word splitting.
 
927
It specifies the session program to be executed (as the user owning
 
928
the session).
 
929
Usually, a script named <command>Xsession</command> is used here.
 
930
See <xref linkend="kdmrc-xsession"/>.
 
931
</para>
 
932
<para>The default is <quote>${<envar>x_bindir</envar>}/xterm -ls -T</quote>.</para>
 
933
</listitem>
 
934
</varlistentry>
 
935
 
 
936
<varlistentry>
 
937
<term id="option-failsafeclient"><option>FailsafeClient</option></term>
 
938
<listitem>
 
939
<para>
 
940
If the <option>Session</option> program fails to execute, &kdm; will
 
941
fall back to this program. This program is executed with no arguments,
 
942
but executes using the same environment variables as the session would
 
943
have had (see <xref linkend="kdmrc-xsession"/>).
 
944
</para>
 
945
<para>The default is <quote>${<envar>x_bindir</envar>}/xterm</quote>.</para>
 
946
</listitem>
 
947
</varlistentry>
 
948
 
 
949
<varlistentry>
 
950
<term id="option-userpath"><option>UserPath</option></term>
 
951
<listitem>
 
952
<para>
 
953
The <envar>PATH</envar> environment variable for
 
954
non-<systemitem class="username">root</systemitem> <option>Session</option>s.
 
955
</para><para>
 
956
The default depends on the system &kdm; was built on.
 
957
</para>
 
958
</listitem>
 
959
</varlistentry>
 
960
 
 
961
<varlistentry>
 
962
<term id="option-systempath"><option>SystemPath</option></term>
 
963
<listitem>
 
964
<para>
 
965
The <envar>PATH</envar> environment variable for all programs but
 
966
non-<systemitem class="username">root</systemitem>
 
967
<option>Session</option>s. Note that it is good practice not to include
 
968
<literal>.</literal> (the current directory) into this entry.
 
969
</para><para>
 
970
The default depends on the system &kdm; was built on.
 
971
</para>
 
972
</listitem>
 
973
</varlistentry>
 
974
 
 
975
<varlistentry>
 
976
<term id="option-systemshell"><option>SystemShell</option></term>
 
977
<listitem>
 
978
<para>
 
979
The <envar>SHELL</envar> environment variable for all programs but the 
 
980
<option>Session</option>.
 
981
</para>
 
982
<para>The default is <quote>/bin/sh</quote>.</para>
 
983
</listitem>
 
984
</varlistentry>
 
985
 
 
986
<varlistentry>
 
987
<term id="option-userauthdir"><option>UserAuthDir</option></term>
 
988
<listitem>
 
989
<para>
 
990
When &kdm; is unable to write to the usual user authorization file
 
991
($<envar>HOME</envar>/.Xauthority), it creates a unique file name in this
 
992
directory and points the environment variable <envar>XAUTHORITY</envar>
 
993
at the created file.
 
994
</para>
 
995
<para>The default is <quote>/tmp</quote>.</para>
 
996
</listitem>
 
997
</varlistentry>
 
998
 
 
999
<varlistentry>
 
1000
<term id="option-forceuserauthdir"><option>ForceUserAuthDir</option></term>
 
1001
<listitem>
 
1002
<para>
 
1003
If true, <option>UserAuthDir</option> will be used unconditionally.
 
1004
</para>
 
1005
<para>The default is <quote>false</quote>.</para>
 
1006
</listitem>
 
1007
</varlistentry>
 
1008
 
 
1009
<varlistentry>
 
1010
<term id="option-autorelogin"><option>AutoReLogin</option></term>
 
1011
<listitem>
 
1012
<para>
 
1013
If enabled, &kdm; will automatically restart a session after an &X-Server;
 
1014
crash (or if it is killed by Alt-Ctrl-BackSpace). Note that enabling this
 
1015
feature opens a security hole: a secured display lock can be circumvented
 
1016
(unless &kde;'s built-in screen locker is used).
 
1017
</para>
 
1018
<para>The default is <quote>false</quote>.</para>
 
1019
</listitem>
 
1020
</varlistentry>
 
1021
 
 
1022
<varlistentry>
 
1023
<term id="option-allowrootlogin"><option>AllowRootLogin</option></term>
 
1024
<listitem>
 
1025
<para>
 
1026
If disabled, do not allow <systemitem class="username">root</systemitem>
 
1027
(and any other user with UID = 0) to log in directly.
 
1028
</para>
 
1029
<para>The default is <quote>true</quote>.</para>
 
1030
</listitem>
 
1031
</varlistentry>
 
1032
 
 
1033
<varlistentry>
 
1034
<term id="option-allownullpasswd"><option>AllowNullPasswd</option></term>
 
1035
<listitem>
 
1036
<para>
 
1037
If disabled, only users that have passwords assigned can log in.
 
1038
</para>
 
1039
<para>The default is <quote>true</quote>.</para>
 
1040
</listitem>
 
1041
</varlistentry>
 
1042
 
 
1043
<varlistentry>
 
1044
<term id="option-allowshutdown"><option>AllowShutdown</option></term>
 
1045
<listitem>
 
1046
<para>
 
1047
Who is allowed to shut down the system. This applies both to the
 
1048
greeter and to the command sockets.
 
1049
</para>
 
1050
<variablelist>
 
1051
<varlistentry>
 
1052
<term><parameter>None</parameter></term>
 
1053
<listitem><para>no <guilabel>Shutdown...</guilabel> menu entry is shown at all</para></listitem>
 
1054
</varlistentry>
 
1055
<varlistentry>
 
1056
<term><parameter>Root</parameter></term>
 
1057
<listitem><para>the <systemitem class="username">root</systemitem> password must be entered to shut down</para></listitem>
 
1058
</varlistentry>
 
1059
<varlistentry>
 
1060
<term><parameter>All</parameter></term>
 
1061
<listitem><para>everybody can shut down the machine</para></listitem>
 
1062
</varlistentry>
 
1063
</variablelist>
 
1064
<para>The default is <quote>All</quote>.</para>
 
1065
</listitem>
 
1066
</varlistentry>
 
1067
 
 
1068
<varlistentry>
 
1069
<term id="option-allowsdforcenow"><option>AllowSdForceNow</option></term>
 
1070
<listitem>
 
1071
<para>
 
1072
Who is allowed to abort active sessions when shutting down.
 
1073
</para>
 
1074
<variablelist>
 
1075
<varlistentry>
 
1076
<term><parameter>None</parameter></term>
 
1077
<listitem><para>no forced shutdown is allowed at all</para></listitem>
 
1078
</varlistentry>
 
1079
<varlistentry>
 
1080
<term><parameter>Root</parameter></term>
 
1081
<listitem><para>the <systemitem class="username">root</systemitem> password must be entered to shut down forcibly</para></listitem>
 
1082
</varlistentry>
 
1083
<varlistentry>
 
1084
<term><parameter>All</parameter></term>
 
1085
<listitem><para>everybody can shut down the machine forcibly</para></listitem>
 
1086
</varlistentry>
 
1087
</variablelist>
 
1088
<para>The default is <quote>All</quote>.</para>
 
1089
</listitem>
 
1090
</varlistentry>
 
1091
 
 
1092
<varlistentry>
 
1093
<term id="option-defaultsdmode"><option>DefaultSdMode</option></term>
 
1094
<listitem>
 
1095
<para>
 
1096
The default choice for the shutdown condition/timing.
 
1097
</para>
 
1098
<variablelist>
 
1099
<varlistentry>
 
1100
<term><parameter>Schedule</parameter></term>
 
1101
<listitem><para>shut down after all active sessions exit (possibly at once)</para></listitem>
 
1102
</varlistentry>
 
1103
<varlistentry>
 
1104
<term><parameter>TryNow</parameter></term>
 
1105
<listitem><para>shut down, if no active sessions are open; otherwise, do nothing</para></listitem>
 
1106
</varlistentry>
 
1107
<varlistentry>
 
1108
<term><parameter>ForceNow</parameter></term>
 
1109
<listitem><para>shut down unconditionally</para></listitem>
 
1110
</varlistentry>
 
1111
</variablelist>
 
1112
<para>The default is <quote>Schedule</quote>.</para>
 
1113
</listitem>
 
1114
</varlistentry>
 
1115
 
 
1116
<varlistentry>
 
1117
<term id="option-scheduledsd"><option>ScheduledSd</option></term>
 
1118
<listitem>
 
1119
<para>
 
1120
How to offer shutdown scheduling options:
 
1121
</para>
 
1122
<variablelist>
 
1123
<varlistentry>
 
1124
<term><parameter>Never</parameter></term>
 
1125
<listitem><para>not at all</para></listitem>
 
1126
</varlistentry>
 
1127
<varlistentry>
 
1128
<term><parameter>Optional</parameter></term>
 
1129
<listitem><para>as a button in the simple shutdown dialogs</para></listitem>
 
1130
</varlistentry>
 
1131
<varlistentry>
 
1132
<term><parameter>Always</parameter></term>
 
1133
<listitem><para>instead of the simple shutdown dialogs</para></listitem>
 
1134
</varlistentry>
 
1135
</variablelist>
 
1136
<para>The default is <quote>Never</quote>.</para>
 
1137
</listitem>
 
1138
</varlistentry>
 
1139
 
 
1140
<varlistentry>
 
1141
<term id="option-nopassenable"><option>NoPassEnable</option></term>
 
1142
<listitem>
 
1143
<para>
 
1144
Enable password-less logins on this display. <emphasis>Use with extreme care!</emphasis>
 
1145
</para>
 
1146
<para>The default is <quote>false</quote>.</para>
 
1147
</listitem>
 
1148
</varlistentry>
 
1149
 
 
1150
<varlistentry>
 
1151
<term id="option-nopassusers"><option>NoPassUsers</option></term>
 
1152
<listitem>
 
1153
<para>
 
1154
The users that do not need to provide a password to log in.
 
1155
Items which are prefixed with <literal>@</literal> represent all users in the
 
1156
user group named by that item.
 
1157
<literal>*</literal> means all users but
 
1158
<systemitem class="username">root</systemitem>
 
1159
(and any other user with UID = 0).
 
1160
<emphasis>Never</emphasis> list <systemitem class="username">root</systemitem>.
 
1161
</para>
 
1162
<para>Empty by default.</para>
 
1163
</listitem>
 
1164
</varlistentry>
 
1165
 
 
1166
<varlistentry>
 
1167
<term id="option-autologinenable"><option>AutoLoginEnable</option></term>
 
1168
<listitem>
 
1169
<para>
 
1170
Enable automatic login. <emphasis>Use with extreme care!</emphasis>
 
1171
</para>
 
1172
<para>The default is <quote>false</quote>.</para>
 
1173
</listitem>
 
1174
</varlistentry>
 
1175
 
 
1176
<varlistentry>
 
1177
<term id="option-autologinagain"><option>AutoLoginAgain</option></term>
 
1178
<listitem>
 
1179
<para>
 
1180
If true, auto-login after logout. If false, auto-login is performed only
 
1181
when a display session starts up.
 
1182
</para>
 
1183
<para>The default is <quote>false</quote>.</para>
 
1184
</listitem>
 
1185
</varlistentry>
 
1186
 
 
1187
<varlistentry>
 
1188
<term id="option-autologindelay"><option>AutoLoginDelay</option></term>
 
1189
<listitem>
 
1190
<para>
 
1191
The delay in seconds before automatic login kicks in. This is also known as
 
1192
<quote>Timed Login</quote>.
 
1193
</para>
 
1194
</listitem>
 
1195
</varlistentry>
 
1196
 
 
1197
<varlistentry>
 
1198
<term id="option-autologinuser"><option>AutoLoginUser</option></term>
 
1199
<listitem>
 
1200
<para>
 
1201
The user to log in automatically. <emphasis>Never</emphasis> specify <systemitem class="username">root</systemitem>!
 
1202
</para>
 
1203
<para>Empty by default.</para>
 
1204
</listitem>
 
1205
</varlistentry>
 
1206
 
 
1207
<varlistentry>
 
1208
<term id="option-autologinpass"><option>AutoLoginPass</option></term>
 
1209
<listitem>
 
1210
<para>
 
1211
The password for the user to log in automatically. This is <emphasis>not</emphasis> required
 
1212
unless the user is logged into a <acronym>NIS</acronym> or Kerberos domain. If you use this
 
1213
option, you should <command>chmod&nbsp;<option>600</option>&nbsp;<filename>kdmrc</filename></command> for obvious reasons.
 
1214
</para>
 
1215
<para>Empty by default.</para>
 
1216
</listitem>
 
1217
</varlistentry>
 
1218
 
 
1219
<varlistentry>
 
1220
<term id="option-autologinlocked"><option>AutoLoginLocked</option></term>
 
1221
<listitem>
 
1222
<para>
 
1223
Immediately lock the automatically started session. This works only with
 
1224
KDE sessions.
 
1225
</para>
 
1226
<para>The default is <quote>false</quote>.</para>
 
1227
</listitem>
 
1228
</varlistentry>
 
1229
 
 
1230
<varlistentry>
 
1231
<term id="option-sessionsdirs"><option>SessionsDirs</option></term>
 
1232
<listitem>
 
1233
<para>
 
1234
A list of directories containing session type definitions.
 
1235
Ordered by falling priority.
 
1236
</para>
 
1237
<para>The default is <quote>${<envar>kde_datadir</envar>}/kdm/sessions</quote>.</para>
 
1238
</listitem>
 
1239
</varlistentry>
 
1240
 
 
1241
<varlistentry>
 
1242
<term id="option-clientlogfile"><option>ClientLogFile</option></term>
 
1243
<listitem>
 
1244
<para>
 
1245
The file (relative to the user's home directory) to redirect the session
 
1246
output to.
 
1247
</para><para>
 
1248
The following character pairs are replaced by their value:
 
1249
<variablelist>
 
1250
<varlistentry>
 
1251
<term><parameter>%d</parameter></term>
 
1252
<listitem><para>name of the current display</para></listitem>
 
1253
</varlistentry>
 
1254
<varlistentry>
 
1255
<term><parameter>%u</parameter></term>
 
1256
<listitem><para>login name of the current user</para></listitem>
 
1257
</varlistentry>
 
1258
<varlistentry>
 
1259
<term><parameter>%r</parameter></term>
 
1260
<listitem><para>empty at first. See below.</para></listitem>
 
1261
</varlistentry>
 
1262
<varlistentry>
 
1263
<term><parameter>%%</parameter></term>
 
1264
<listitem><para>a single <literal>%</literal></para></listitem>
 
1265
</varlistentry>
 
1266
</variablelist>
 
1267
When the constructed filename cannot be used safely and the specification
 
1268
contains
 
1269
<literal>%</literal><replaceable>stuff</replaceable><literal>r</literal>,
 
1270
other names will be tried - this time expanding
 
1271
<literal>%</literal><replaceable>stuff</replaceable><literal>r</literal>
 
1272
to <replaceable>stuff</replaceable> followed by a random number.
 
1273
</para>
 
1274
<para>The default is <quote>.xsession-errors</quote>.</para>
 
1275
</listitem>
 
1276
</varlistentry>
 
1277
 
 
1278
<varlistentry>
 
1279
<term id="option-clientlogfallback"><option>ClientLogFallback</option></term>
 
1280
<listitem>
 
1281
<para>
 
1282
Fallback when <option>ClientLogFile</option> cannot be used. The same expansions are
 
1283
supported. <emphasis>Do not</emphasis> use relative paths here.
 
1284
</para>
 
1285
<para>The default is <quote>/tmp/xerr-%u-%d%-r</quote>.</para>
 
1286
</listitem>
 
1287
</varlistentry>
 
1288
 
 
1289
<varlistentry>
 
1290
<term id="option-usesessreg"><option>UseSessReg</option></term>
 
1291
<listitem>
 
1292
<para>
 
1293
Specify whether &kdm;'s built-in utmp/wtmp/lastlog registration should
 
1294
be used. If it is not, the tool <command>sessreg</command> should be used
 
1295
in the <option>Startup</option> and <option>Reset</option> scripts, or,
 
1296
alternatively, the pam_lastlog module should be used on
 
1297
<acronym>PAM</acronym>-enabled systems.
 
1298
</para>
 
1299
<para>The default is <quote>true</quote>.</para>
 
1300
</listitem>
 
1301
</varlistentry>
 
1302
 
 
1303
</variablelist>
 
1304
</sect2>
 
1305
 
 
1306
 
 
1307
<sect2 id="kdmrc-greeter">
 
1308
<title>The [X-*-Greeter] section class of &kdmrc;</title>
 
1309
 
 
1310
<para>
 
1311
This section class contains options concerning the configuration
 
1312
of the &kdm; frontend (greeter).
 
1313
</para>
 
1314
 
 
1315
<variablelist>
 
1316
 
 
1317
<varlistentry>
 
1318
<term id="option-guistyle"><option>GUIStyle</option></term>
 
1319
<listitem>
 
1320
<para>
 
1321
Specify the widget style for the greeter. Empty means to use the
 
1322
built-in default which currently is <literal>Oxygen-air</literal>.
 
1323
</para>
 
1324
<para>Empty by default.</para>
 
1325
</listitem>
 
1326
</varlistentry>
 
1327
 
 
1328
<varlistentry>
 
1329
<term id="option-colorscheme"><option>ColorScheme</option></term>
 
1330
<listitem>
 
1331
<para>
 
1332
Specify the widget color scheme for the greeter. Empty means to use the
 
1333
built-in default which currently is <literal>Oxygen-air</literal>.
 
1334
</para>
 
1335
<para>Empty by default.</para>
 
1336
</listitem>
 
1337
</varlistentry>
 
1338
 
 
1339
<varlistentry>
 
1340
<term id="option-logoarea"><option>LogoArea</option></term>
 
1341
<listitem>
 
1342
<para>
 
1343
What should be shown in the greeter righthand of the input lines (if
 
1344
<option>UserList</option> is disabled) or above them (if
 
1345
<option>UserList</option> is enabled):
 
1346
</para>
 
1347
<variablelist>
 
1348
<varlistentry>
 
1349
<term><parameter>None</parameter></term>
 
1350
<listitem><para>nothing</para></listitem>
 
1351
</varlistentry>
 
1352
<varlistentry>
 
1353
<term><parameter>Logo</parameter></term>
 
1354
<listitem><para>the image specified by <option>LogoPixmap</option></para></listitem>
 
1355
</varlistentry>
 
1356
<varlistentry>
 
1357
<term><parameter>Clock</parameter></term>
 
1358
<listitem><para>a neat analog clock</para></listitem>
 
1359
</varlistentry>
 
1360
</variablelist>
 
1361
<para>The default is <quote>Clock</quote>.</para>
 
1362
</listitem>
 
1363
</varlistentry>
 
1364
 
 
1365
<varlistentry>
 
1366
<term id="option-logopixmap"><option>LogoPixmap</option></term>
 
1367
<listitem>
 
1368
<para>
 
1369
The image to show in the greeter if <option>LogoArea</option> is
 
1370
<literal>Logo</literal>.
 
1371
</para>
 
1372
<para>Empty by default.</para>
 
1373
</listitem>
 
1374
</varlistentry>
 
1375
 
 
1376
<varlistentry>
 
1377
<term id="option-greeterpos"><option>GreeterPos</option></term>
 
1378
<listitem>
 
1379
<para>
 
1380
The relative coordinates (percentages of the screen size; X,Y) at which
 
1381
the center of the greeter is put. &kdm; aligns the greeter to the edges
 
1382
of the screen it would cross otherwise.
 
1383
</para>
 
1384
<para>The default is <quote>50,50</quote>.</para>
 
1385
</listitem>
 
1386
</varlistentry>
 
1387
 
 
1388
<varlistentry>
 
1389
<term id="option-greeterscreen"><option>GreeterScreen</option></term>
 
1390
<listitem>
 
1391
<para>
 
1392
The screen the greeter should be displayed on in multi-headed and Xinerama
 
1393
setups. The numbering starts with 0. For Xinerama, it corresponds to the
 
1394
listing order in the active ServerLayout section of XF86Config; -1 means
 
1395
to use the upper-left screen, -2 means to use the upper-right screen.
 
1396
</para>
 
1397
</listitem>
 
1398
</varlistentry>
 
1399
 
 
1400
<varlistentry>
 
1401
<term id="option-greetstring"><option>GreetString</option></term>
 
1402
<listitem>
 
1403
<para>
 
1404
The headline in the greeter. An empty greeting means none at all.
 
1405
</para><para>
 
1406
The following character pairs are replaced by their value:
 
1407
<variablelist>
 
1408
<varlistentry>
 
1409
<term><parameter>%d</parameter></term>
 
1410
<listitem><para>name of the current display</para></listitem>
 
1411
</varlistentry>
 
1412
<varlistentry>
 
1413
<term><parameter>%h</parameter></term>
 
1414
<listitem><para>local host name, possibly with the
 
1415
 domain name</para></listitem>
 
1416
</varlistentry>
 
1417
<varlistentry>
 
1418
<term><parameter>%n</parameter></term>
 
1419
<listitem><para>local node name, most probably the host name without the
 
1420
 domain name</para></listitem>
 
1421
</varlistentry>
 
1422
<varlistentry>
 
1423
<term><parameter>%s</parameter></term>
 
1424
<listitem><para>operating system</para></listitem>
 
1425
</varlistentry>
 
1426
<varlistentry>
 
1427
<term><parameter>%r</parameter></term>
 
1428
<listitem><para>operating system version</para></listitem>
 
1429
</varlistentry>
 
1430
<varlistentry>
 
1431
<term><parameter>%m</parameter></term>
 
1432
<listitem><para>machine (hardware) type</para></listitem>
 
1433
</varlistentry>
 
1434
<varlistentry>
 
1435
<term><parameter>%%</parameter></term>
 
1436
<listitem><para>a single <literal>%</literal></para></listitem>
 
1437
</varlistentry>
 
1438
</variablelist>
 
1439
</para>
 
1440
<para>The default is <quote>Welcome to %s at %n</quote>.</para>
 
1441
</listitem>
 
1442
</varlistentry>
 
1443
 
 
1444
<varlistentry>
 
1445
<term id="option-antialiasing"><option>AntiAliasing</option></term>
 
1446
<listitem>
 
1447
<para>
 
1448
Whether the fonts used in the greeter should be antialiased.
 
1449
</para>
 
1450
<para>The default is <quote>false</quote>.</para>
 
1451
</listitem>
 
1452
</varlistentry>
 
1453
 
 
1454
<varlistentry>
 
1455
<term id="option-greetfont"><option>GreetFont</option></term>
 
1456
<listitem>
 
1457
<para>
 
1458
The font for the greeter headline.
 
1459
</para>
 
1460
<para>The default is <quote>Serif,20,bold</quote>.</para>
 
1461
</listitem>
 
1462
</varlistentry>
 
1463
 
 
1464
<varlistentry>
 
1465
<term id="option-stdfont"><option>StdFont</option></term>
 
1466
<listitem>
 
1467
<para>
 
1468
The normal font used in the greeter.
 
1469
</para>
 
1470
<para>The default is <quote>Sans Serif,10</quote>.</para>
 
1471
</listitem>
 
1472
</varlistentry>
 
1473
 
 
1474
<varlistentry>
 
1475
<term id="option-failfont"><option>FailFont</option></term>
 
1476
<listitem>
 
1477
<para>
 
1478
The font used for the <quote>Login Failed</quote> message.
 
1479
</para>
 
1480
<para>The default is <quote>Sans Serif,10,bold</quote>.</para>
 
1481
</listitem>
 
1482
</varlistentry>
 
1483
 
 
1484
<varlistentry>
 
1485
<term id="option-numlock"><option>NumLock</option></term>
 
1486
<listitem>
 
1487
<para>
 
1488
What to do with the Num Lock modifier for the time the greeter is running:
 
1489
</para>
 
1490
<variablelist>
 
1491
<varlistentry>
 
1492
<term><parameter>Off</parameter></term>
 
1493
<listitem><para>turn off</para></listitem>
 
1494
</varlistentry>
 
1495
<varlistentry>
 
1496
<term><parameter>On</parameter></term>
 
1497
<listitem><para>turn on</para></listitem>
 
1498
</varlistentry>
 
1499
<varlistentry>
 
1500
<term><parameter>Keep</parameter></term>
 
1501
<listitem><para>do not change the state</para></listitem>
 
1502
</varlistentry>
 
1503
</variablelist>
 
1504
<para>The default is <quote>Keep</quote>.</para>
 
1505
</listitem>
 
1506
</varlistentry>
 
1507
 
 
1508
<varlistentry>
 
1509
<term id="option-language"><option>Language</option></term>
 
1510
<listitem>
 
1511
<para>
 
1512
Language and locale to use in the greeter, encoded like $<envar>LANGUAGE</envar>.
 
1513
If empty, the settings from the environment are used.
 
1514
</para>
 
1515
<para>Empty by default.</para>
 
1516
</listitem>
 
1517
</varlistentry>
 
1518
 
 
1519
<varlistentry>
 
1520
<term id="option-usercompletion"><option>UserCompletion</option></term>
 
1521
<listitem>
 
1522
<para>
 
1523
Enable autocompletion in the username line edit.
 
1524
</para>
 
1525
<para>The default is <quote>false</quote>.</para>
 
1526
</listitem>
 
1527
</varlistentry>
 
1528
 
 
1529
<varlistentry>
 
1530
<term id="option-userlist"><option>UserList</option></term>
 
1531
<listitem>
 
1532
<para>
 
1533
Show a user list with unix login names, real names, and images in the greeter.
 
1534
</para>
 
1535
<para>The default is <quote>true</quote>.</para>
 
1536
</listitem>
 
1537
</varlistentry>
 
1538
 
 
1539
<varlistentry>
 
1540
<term id="option-showusers"><option>ShowUsers</option></term>
 
1541
<listitem>
 
1542
<para>
 
1543
This option controls which users will be shown in the user view
 
1544
(<option>UserList</option>) and/or offered for autocompletion
 
1545
(<option>UserCompletion</option>).
 
1546
If it is <literal>Selected</literal>, <option>SelectedUsers</option> contains
 
1547
the final list of users.
 
1548
If it is <literal>NotHidden</literal>, the initial user list contains all
 
1549
users found on the system. Users contained in <option>HiddenUsers</option> are
 
1550
removed from the list, just like all users with a UID greater than specified
 
1551
in <option>MaxShowUID</option> and users with a non-zero UID less than
 
1552
specified in <option>MinShowUID</option>.
 
1553
Items in <option>SelectedUsers</option> and <option>HiddenUsers</option>
 
1554
which are prefixed with <literal>@</literal> represent all users in the
 
1555
user group named by that item.
 
1556
Finally, the user list will be sorted alphabetically, if
 
1557
<option>SortUsers</option> is enabled. 
 
1558
</para>
 
1559
<para>The default is <quote>NotHidden</quote>.</para>
 
1560
</listitem>
 
1561
</varlistentry>
 
1562
 
 
1563
<varlistentry>
 
1564
<term id="option-selectedusers"><option>SelectedUsers</option></term>
 
1565
<listitem>
 
1566
<para>
 
1567
See <option>ShowUsers</option>.
 
1568
</para>
 
1569
<para>Empty by default.</para>
 
1570
</listitem>
 
1571
</varlistentry>
 
1572
 
 
1573
<varlistentry>
 
1574
<term id="option-hiddenusers"><option>HiddenUsers</option></term>
 
1575
<listitem>
 
1576
<para>
 
1577
See <option>ShowUsers</option>.
 
1578
</para>
 
1579
<para>Empty by default.</para>
 
1580
</listitem>
 
1581
</varlistentry>
 
1582
 
 
1583
<varlistentry>
 
1584
<term id="option-minshowuid"><option>MinShowUID</option></term>
 
1585
<listitem>
 
1586
<para>
 
1587
See <option>ShowUsers</option>.
 
1588
</para>
 
1589
</listitem>
 
1590
</varlistentry>
 
1591
 
 
1592
<varlistentry>
 
1593
<term id="option-maxshowuid"><option>MaxShowUID</option></term>
 
1594
<listitem>
 
1595
<para>
 
1596
See <option>ShowUsers</option>.
 
1597
</para>
 
1598
<para>The default is <quote>65535</quote>.</para>
 
1599
</listitem>
 
1600
</varlistentry>
 
1601
 
 
1602
<varlistentry>
 
1603
<term id="option-sortusers"><option>SortUsers</option></term>
 
1604
<listitem>
 
1605
<para>
 
1606
See <option>ShowUsers</option>.
 
1607
</para>
 
1608
<para>The default is <quote>true</quote>.</para>
 
1609
</listitem>
 
1610
</varlistentry>
 
1611
 
 
1612
<varlistentry>
 
1613
<term id="option-facesource"><option>FaceSource</option></term>
 
1614
<listitem>
 
1615
<para>
 
1616
If <option>UserList</option> is enabled, this specifies where &kdm; gets the
 
1617
images from:
 
1618
</para>
 
1619
<variablelist>
 
1620
<varlistentry>
 
1621
<term><parameter>AdminOnly</parameter></term>
 
1622
<listitem><para>from <filename>&lt;<option>FaceDir</option>&gt;/$<envar>USER</envar>.face[.icon]</filename></para></listitem>
 
1623
</varlistentry>
 
1624
<varlistentry>
 
1625
<term><parameter>PreferAdmin</parameter></term>
 
1626
<listitem><para>prefer &lt;<option>FaceDir</option>&gt;, fallback on $<envar>HOME</envar></para></listitem>
 
1627
</varlistentry>
 
1628
<varlistentry>
 
1629
<term><parameter>PreferUser</parameter></term>
 
1630
<listitem><para>... and the other way round</para></listitem>
 
1631
</varlistentry>
 
1632
<varlistentry>
 
1633
<term><parameter>UserOnly</parameter></term>
 
1634
<listitem><para>from the user's <filename>$<envar>HOME</envar>/.face[.icon]</filename></para></listitem>
 
1635
</varlistentry>
 
1636
</variablelist>
 
1637
 
 
1638
<para>
 
1639
The images can be in any format Qt recognizes, but the filename
 
1640
must match &kdm;'s expectations: <literal>.face.icon</literal> should be a
 
1641
48x48 icon, while <literal>.face</literal> should be a 300x300 image.
 
1642
Currently the big image is used only as a fallback and is scaled down,
 
1643
but in the future it might be displayed full-size in the logo area or a
 
1644
tooltip.
 
1645
To be accessible to &kdm;, the images must be world readable and their
 
1646
parent directories must be world executable.
 
1647
</para>
 
1648
<para>The default is <quote>AdminOnly</quote>.</para>
 
1649
</listitem>
 
1650
</varlistentry>
 
1651
 
 
1652
<varlistentry>
 
1653
<term id="option-facedir"><option>FaceDir</option></term>
 
1654
<listitem>
 
1655
<para>
 
1656
See <option>FaceSource</option>.
 
1657
</para>
 
1658
<para>The default is <quote>${<envar>kde_datadir</envar>}/kdm/faces</quote>.</para>
 
1659
</listitem>
 
1660
</varlistentry>
 
1661
 
 
1662
<varlistentry>
 
1663
<term id="option-preselectuser"><option>PreselectUser</option></term>
 
1664
<listitem>
 
1665
<para>
 
1666
Specify, if/which user should be preselected for log in:
 
1667
</para>
 
1668
<variablelist>
 
1669
<varlistentry>
 
1670
<term><parameter>None</parameter></term>
 
1671
<listitem><para>do not preselect any user</para></listitem>
 
1672
</varlistentry>
 
1673
<varlistentry>
 
1674
<term><parameter>Previous</parameter></term>
 
1675
<listitem><para>the user which successfully logged in last time</para></listitem>
 
1676
</varlistentry>
 
1677
<varlistentry>
 
1678
<term><parameter>Default</parameter></term>
 
1679
<listitem><para>the user specified in the <option>DefaultUser</option> option</para></listitem>
 
1680
</varlistentry>
 
1681
</variablelist>
 
1682
 
 
1683
<para>
 
1684
If <option>FocusPasswd</option> is enabled and a user was preselected,
 
1685
the cursor is placed in the password input field automatically.
 
1686
</para>
 
1687
<note><para>Enabling user preselection can be considered a security hole,
 
1688
as it presents a valid login name to a potential attacker, so he
 
1689
<quote>only</quote> needs to guess the password. On the other hand,
 
1690
one could set <option>DefaultUser</option> to a fake login name.</para></note>
 
1691
<para>
 
1692
</para>
 
1693
<para>The default is <quote>None</quote>.</para>
 
1694
</listitem>
 
1695
</varlistentry>
 
1696
 
 
1697
<varlistentry>
 
1698
<term id="option-defaultuser"><option>DefaultUser</option></term>
 
1699
<listitem>
 
1700
<para>
 
1701
See <option>PreselectUser</option>.
 
1702
</para>
 
1703
<para>Empty by default.</para>
 
1704
</listitem>
 
1705
</varlistentry>
 
1706
 
 
1707
<varlistentry>
 
1708
<term id="option-focuspasswd"><option>FocusPasswd</option></term>
 
1709
<listitem>
 
1710
<para>
 
1711
See <option>PreselectUser</option>.
 
1712
</para>
 
1713
<para>The default is <quote>false</quote>.</para>
 
1714
</listitem>
 
1715
</varlistentry>
 
1716
 
 
1717
<varlistentry>
 
1718
<term id="option-echopasswd"><option>EchoPasswd</option></term>
 
1719
<listitem>
 
1720
<para>
 
1721
If this is true, the entered password is echoed as bullets. Otherwise,
 
1722
no feedback is given at all.
 
1723
</para>
 
1724
<para>The default is <quote>true</quote>.</para>
 
1725
</listitem>
 
1726
</varlistentry>
 
1727
 
 
1728
<varlistentry>
 
1729
<term id="option-usebackground"><option>UseBackground</option></term>
 
1730
<listitem>
 
1731
<para>
 
1732
If enabled, &kdm; will automatically start the <command>krootimage</command>
 
1733
program to set up the background; otherwise, the <option>Setup</option>
 
1734
program is responsible for the background.
 
1735
</para>
 
1736
<para>The default is <quote>true</quote>.</para>
 
1737
</listitem>
 
1738
</varlistentry>
 
1739
 
 
1740
<varlistentry>
 
1741
<term id="option-backgroundcfg"><option>BackgroundCfg</option></term>
 
1742
<listitem>
 
1743
<para>
 
1744
The configuration file to be used by <command>krootimage</command>.
 
1745
It contains a section named <literal>[Desktop0]</literal> like
 
1746
<filename>kdesktoprc</filename> does. Its options are not described
 
1747
herein; guess their meanings or use the control center.
 
1748
</para>
 
1749
<para>The default is <quote>${<envar>kde_confdir</envar>}/kdm/backgroundrc</quote>.</para>
 
1750
</listitem>
 
1751
</varlistentry>
 
1752
 
 
1753
<varlistentry>
 
1754
<term id="option-grabinput"><option>GrabInput</option></term>
 
1755
<listitem>
 
1756
<para>
 
1757
To improve security, the greeter may grab mouse and keyboard input so
 
1758
no other X clients can eavesdrop it. However, the X authorization
 
1759
mechanism will usually prevent malicious X clients from connecting
 
1760
in the first place. Consequently, enabling grabs for local displays
 
1761
is pointless and only marginally improves security for remote displays.
 
1762
</para>
 
1763
<note><para>The mouse grab will make on-screen keyboards unusable.
 
1764
</para></note>
 
1765
<para>
 
1766
</para>
 
1767
<variablelist>
 
1768
<varlistentry>
 
1769
<term><parameter>Never</parameter></term>
 
1770
<listitem><para>never grab</para></listitem>
 
1771
</varlistentry>
 
1772
<varlistentry>
 
1773
<term><parameter>IfNoAuth</parameter></term>
 
1774
<listitem><para>grab if the display requires no X authorization</para></listitem>
 
1775
</varlistentry>
 
1776
<varlistentry>
 
1777
<term><parameter>Always</parameter></term>
 
1778
<listitem><para>always grab</para></listitem>
 
1779
</varlistentry>
 
1780
</variablelist>
 
1781
<para>The default is <quote>IfNoAuth</quote>.</para>
 
1782
</listitem>
 
1783
</varlistentry>
 
1784
 
 
1785
<varlistentry>
 
1786
<term id="option-grabserver"><option>GrabServer</option></term>
 
1787
<listitem>
 
1788
<para>
 
1789
To improve security, the greeter grabs the &X-Server; and then the input
 
1790
when it starts up. This option specifies if the &X-Server; grab should be held
 
1791
for the duration of the name/password reading. When disabled, the &X-Server;
 
1792
is ungrabbed after the input grabs succeed; otherwise, the &X-Server; is
 
1793
grabbed until just before the session begins.
 
1794
</para>
 
1795
<note><para>Enabling this option disables <option>UseBackground</option> and
 
1796
<option>Setup</option>.</para></note>
 
1797
<para>
 
1798
</para>
 
1799
<para>The default is <quote>false</quote>.</para>
 
1800
</listitem>
 
1801
</varlistentry>
 
1802
 
 
1803
<varlistentry>
 
1804
<term id="option-grabtimeout"><option>GrabTimeout</option></term>
 
1805
<listitem>
 
1806
<para>
 
1807
This option specifies the maximum time &kdm; will wait for the grabs to
 
1808
succeed. A grab may fail if some other X-client has the &X-Server; or the
 
1809
keyboard grabbed, or possibly if the network latencies are very high. You
 
1810
should be cautious when raising the timeout, as a user can be spoofed by
 
1811
a look-alike window on the display. If a grab fails, &kdm; kills and
 
1812
restarts the &X-Server; (if possible) and the session. 
 
1813
</para>
 
1814
<para>The default is <quote>3</quote>.</para>
 
1815
</listitem>
 
1816
</varlistentry>
 
1817
 
 
1818
<varlistentry>
 
1819
<term id="option-authcomplain"><option>AuthComplain</option></term>
 
1820
<listitem>
 
1821
<para>
 
1822
Warn, if a display has no X-authorization. This will be the case if
 
1823
<itemizedlist>
 
1824
 <listitem><para>
 
1825
  the authorization file for a local &X-Server; could not be created,
 
1826
 </para></listitem>
 
1827
 <listitem><para>
 
1828
  a remote display from &XDMCP; did not request any authorization or
 
1829
 </para></listitem>
 
1830
 <listitem><para>
 
1831
  the display is a <quote>foreign</quote> display specified in
 
1832
  <option>StaticServers</option>.
 
1833
 </para></listitem>
 
1834
</itemizedlist>
 
1835
</para>
 
1836
<para>The default is <quote>true</quote>.</para>
 
1837
</listitem>
 
1838
</varlistentry>
 
1839
 
 
1840
<varlistentry>
 
1841
<term id="option-loginmode"><option>LoginMode</option></term>
 
1842
<listitem>
 
1843
<para>
 
1844
Specify whether the greeter of local displays should start up in host chooser
 
1845
(remote) or login (local) mode and whether it is allowed to switch to the
 
1846
other mode.
 
1847
</para>
 
1848
<variablelist>
 
1849
<varlistentry>
 
1850
<term><parameter>LocalOnly</parameter></term>
 
1851
<listitem><para>only local login possible</para></listitem>
 
1852
</varlistentry>
 
1853
<varlistentry>
 
1854
<term><parameter>DefaultLocal</parameter></term>
 
1855
<listitem><para>start up in local mode, but allow switching to remote mode</para></listitem>
 
1856
</varlistentry>
 
1857
<varlistentry>
 
1858
<term><parameter>DefaultRemote</parameter></term>
 
1859
<listitem><para>... and the other way round</para></listitem>
 
1860
</varlistentry>
 
1861
<varlistentry>
 
1862
<term><parameter>RemoteOnly</parameter></term>
 
1863
<listitem><para>only choice of remote host possible</para></listitem>
 
1864
</varlistentry>
 
1865
</variablelist>
 
1866
<para>The default is <quote>LocalOnly</quote>.</para>
 
1867
</listitem>
 
1868
</varlistentry>
 
1869
 
 
1870
<varlistentry>
 
1871
<term id="option-chooserhosts"><option>ChooserHosts</option></term>
 
1872
<listitem>
 
1873
<para>
 
1874
A list of hosts to be automatically added to the remote login menu.
 
1875
The special name <literal>*</literal> means broadcast.
 
1876
Has no effect if <option>LoginMode</option> is <literal>LocalOnly</literal>.
 
1877
</para>
 
1878
<para>The default is <quote>*</quote>.</para>
 
1879
</listitem>
 
1880
</varlistentry>
 
1881
 
 
1882
<varlistentry>
 
1883
<term id="option-forgingseed"><option>ForgingSeed</option></term>
 
1884
<listitem>
 
1885
<para>
 
1886
Use this number as a random seed when forging saved session types, etc. of
 
1887
unknown users. This is used to avoid telling an attacker about existing users
 
1888
by reverse conclusion. This value should be random but constant across the
 
1889
login domain.
 
1890
</para>
 
1891
</listitem>
 
1892
</varlistentry>
 
1893
 
 
1894
<varlistentry>
 
1895
<term id="option-showlog"><option>ShowLog</option></term>
 
1896
<listitem>
 
1897
<para>
 
1898
Enable &kdm;'s built-in <command>xconsole</command>.
 
1899
Note that this can be enabled for only one display at a time.
 
1900
This option is available only if &kdm; was <command>configure</command>d
 
1901
with <option>--enable-kdm-xconsole</option>.
 
1902
</para>
 
1903
<para>The default is <quote>false</quote>.</para>
 
1904
</listitem>
 
1905
</varlistentry>
 
1906
 
 
1907
<varlistentry>
 
1908
<term id="option-logsource"><option>LogSource</option></term>
 
1909
<listitem>
 
1910
<para>
 
1911
The data source for &kdm;'s built-in <command>xconsole</command>.
 
1912
If empty, a console log redirection is requested from
 
1913
<filename>/dev/console</filename>.
 
1914
Has no effect if <option>ShowLog</option> is disabled.
 
1915
</para>
 
1916
<para>Empty by default.</para>
 
1917
</listitem>
 
1918
</varlistentry>
 
1919
 
 
1920
<varlistentry>
 
1921
<term id="option-pluginslogin"><option>PluginsLogin</option></term>
 
1922
<listitem>
 
1923
<para>
 
1924
Specify conversation plugins for the login dialog; the first in the list
 
1925
is selected initially.
 
1926
Each plugin can be specified as a base name (which expands to
 
1927
<filename>$<envar>kde_modulesdir</envar>/kgreet_<replaceable>base</replaceable></filename>)
 
1928
or as a full pathname.
 
1929
</para><para>
 
1930
Conversation plugins are modules for the greeter which obtain authentication
 
1931
data from the user. Currently only the <literal>classic</literal> plugin is
 
1932
shipped with &kde;; it presents the well-known username and password form.
 
1933
</para>
 
1934
<para>The default is <quote>classic</quote>.</para>
 
1935
</listitem>
 
1936
</varlistentry>
 
1937
 
 
1938
<varlistentry>
 
1939
<term id="option-pluginsshutdown"><option>PluginsShutdown</option></term>
 
1940
<listitem>
 
1941
<para>
 
1942
Same as <option>PluginsLogin</option>, but for the shutdown dialog.
 
1943
</para>
 
1944
<para>The default is <quote>classic</quote>.</para>
 
1945
</listitem>
 
1946
</varlistentry>
 
1947
 
 
1948
<varlistentry>
 
1949
<term id="option-pluginoptions"><option>PluginOptions</option></term>
 
1950
<listitem>
 
1951
<para>
 
1952
A list of options of the form
 
1953
<replaceable>Key</replaceable><literal>=</literal><replaceable>Value</replaceable>.
 
1954
The conversation plugins can query these settings; it is up to them what
 
1955
possible keys are.
 
1956
</para>
 
1957
<para>Empty by default.</para>
 
1958
</listitem>
 
1959
</varlistentry>
 
1960
 
 
1961
<varlistentry>
 
1962
<term id="option-allowconsole"><option>AllowConsole</option></term>
 
1963
<listitem>
 
1964
<para>
 
1965
Show the <guilabel>Console Login</guilabel> action in the greeter (if <option>ServerTTY</option>/<option>ConsoleTTYs</option>
 
1966
is configured).
 
1967
</para>
 
1968
<para>The default is <quote>true</quote>.</para>
 
1969
</listitem>
 
1970
</varlistentry>
 
1971
 
 
1972
<varlistentry>
 
1973
<term id="option-allowclose"><option>AllowClose</option></term>
 
1974
<listitem>
 
1975
<para>
 
1976
Show the <guilabel>Restart X Server</guilabel>/<guilabel>Close Connection</guilabel> action in the greeter.
 
1977
</para>
 
1978
<para>The default is <quote>true</quote>.</para>
 
1979
</listitem>
 
1980
</varlistentry>
 
1981
 
 
1982
<varlistentry>
 
1983
<term id="option-preloader"><option>Preloader</option></term>
 
1984
<listitem>
 
1985
<para>
 
1986
A program to run while the greeter is visible. It is supposed to preload
 
1987
as much as possible of the session that is going to be started (most
 
1988
probably).
 
1989
</para>
 
1990
<para>Empty by default.</para>
 
1991
</listitem>
 
1992
</varlistentry>
 
1993
 
 
1994
<varlistentry>
 
1995
<term id="option-usetheme"><option>UseTheme</option></term>
 
1996
<listitem>
 
1997
<para>
 
1998
Whether the greeter should be themed.
 
1999
</para>
 
2000
<para>The default is <quote>false</quote>.</para>
 
2001
</listitem>
 
2002
</varlistentry>
 
2003
 
 
2004
<varlistentry>
 
2005
<term id="option-theme"><option>Theme</option></term>
 
2006
<listitem>
 
2007
<para>
 
2008
The theme to use for the greeter. Can point to either a directory or an XML
 
2009
file.
 
2010
</para>
 
2011
<para>Empty by default.</para>
 
2012
</listitem>
 
2013
</varlistentry>
 
2014
 
 
2015
<varlistentry>
 
2016
<term id="option-allowthemedebug"><option>AllowThemeDebug</option></term>
 
2017
<listitem>
 
2018
<para>
 
2019
Enable the Alt-Ctrl-D shortcut to toggle greeter theme debugging.
 
2020
</para>
 
2021
<para>The default is <quote>false</quote>.</para>
 
2022
</listitem>
 
2023
</varlistentry>
 
2024
 
 
2025
</variablelist>
 
2026
</sect2>
 
2027
 
 
2028
 
 
2029
 
 
2030
</sect1>
 
2031
 
 
2032
<sect1 id="kdmrc-xservers">
 
2033
<title>Specifying permanent &X-Server;s</title>
 
2034
 
 
2035
<para>Each entry in the <option>StaticServers</option> list indicates a
 
2036
display which should constantly be
 
2037
managed and which is not using &XDMCP;. This method is typically used only for
 
2038
local &X-Server;s that are started by &kdm;, but &kdm; can manage externally
 
2039
started (<quote>foreign</quote>) &X-Server;s as well, may they run on the 
 
2040
local machine or rather remotely.</para>
 
2041
 
 
2042
<para>The formal syntax of a specification is
 
2043
<screen>
 
2044
<userinput><replaceable>display&nbsp;name</replaceable>&nbsp;[<literal>_</literal><replaceable>display&nbsp;class</replaceable>]</userinput>
 
2045
</screen>
 
2046
for all &X-Server;s. <quote>Foreign</quote> displays differ in having
 
2047
a host name in the display name, may it be <literal>localhost</literal>.</para>
 
2048
 
 
2049
<para>The <replaceable>display name</replaceable> must be something that can
 
2050
be passed in the <option>-display</option> option to an X program. This string
 
2051
is used to generate the display-specific section names, so be careful to match
 
2052
the names.
 
2053
The display name of &XDMCP; displays is derived from the display's address by
 
2054
reverse host name resolution. For configuration purposes, the
 
2055
<literal>localhost</literal> prefix from locally running &XDMCP; displays is
 
2056
<emphasis>not</emphasis> stripped to make them distinguishable from local
 
2057
&X-Server;s started by &kdm;.</para>
 
2058
 
 
2059
<para>The <replaceable>display class</replaceable> portion is also used in the
 
2060
display-specific sections. This is useful if you have a large collection of
 
2061
similar displays (such as a corral of X terminals) and would like to set
 
2062
options for groups of them.
 
2063
When using &XDMCP;, the display is required to specify the display class,
 
2064
so the manual for your particular X terminal should document the display
 
2065
class string for your device. If it does not, you can run &kdm; in debug
 
2066
mode and <command>grep</command> the log for <quote>class</quote>.</para>
 
2067
 
 
2068
<para>The displays specified in <option>ReserveServers</option> will not be
 
2069
started when &kdm; starts up, but when it is explicitly requested via
 
2070
the command socket.
 
2071
If reserve displays are specified, the &kde; menu will have a
 
2072
<guilabel>Start New Session</guilabel> item near the bottom; use that to
 
2073
activate a reserve display with a new login session. The monitor will switch
 
2074
to the new display, and you will have a minute to login. If there are no more
 
2075
reserve displays available, the menu item will be disabled.</para>
 
2076
 
 
2077
<para>When &kdm; starts a session, it sets up authorization data for the
 
2078
&X-Server;. For local servers, &kdm; passes
 
2079
<command><option>-auth</option>&nbsp;<filename><replaceable>filename</replaceable></filename></command>
 
2080
on the &X-Server;'s command line to point it at its authorization data.
 
2081
For &XDMCP; displays, &kdm; passes the authorization data to the &X-Server;
 
2082
via the <quote>Accept</quote> &XDMCP; message.</para>
 
2083
 
 
2084
</sect1>
 
2085
 
 
2086
<sect1 id="kdmrc-xaccess">
 
2087
<title>&XDMCP; access control</title>
 
2088
 
 
2089
<para>The file specified by the <option>AccessFile</option> option provides
 
2090
information which &kdm; uses to control access from displays requesting service
 
2091
via &XDMCP;.
 
2092
The file contains four types of entries: entries which control the response
 
2093
to <quote>Direct</quote> and <quote>Broadcast</quote> queries, entries which
 
2094
control the response to <quote>Indirect</quote> queries, macro definitions,
 
2095
and entries which control on which network interfaces &kdm; listens for &XDMCP;
 
2096
queries.
 
2097
Blank lines are ignored, <literal>#</literal> is treated as a comment
 
2098
delimiter causing the rest of that line to be ignored, and <literal>\</literal>
 
2099
causes an immediately following newline to be ignored, allowing host lists
 
2100
to span multiple lines.
 
2101
</para>
 
2102
 
 
2103
<para>The format of the <quote>Direct</quote> entries is simple, either a
 
2104
host name or a pattern, which is compared against the host name of the display
 
2105
device. Alternatively, a macro may be used to make the entry match everything
 
2106
the macro expands to.
 
2107
Patterns are distinguished from host names by the inclusion of one or more
 
2108
meta characters; <literal>*</literal> matches any sequence of 0 or more
 
2109
characters, and <literal>?</literal> matches any single character.
 
2110
If the entry is a host name, all comparisons are done using network addresses,
 
2111
so any name which converts to the correct network address may be used. Note
 
2112
that only the first network address returned for a host name is used.
 
2113
For patterns, only canonical host names are used in the comparison, so ensure
 
2114
that you do not attempt to match aliases.
 
2115
Host names from &XDMCP; queries always contain the local domain name
 
2116
even if the reverse lookup returns a short name, so you can use
 
2117
patterns for the local domain.
 
2118
Preceding the entry with a <literal>!</literal> character causes hosts which
 
2119
match that entry to be excluded. Preceding it with an <literal>=</literal> has
 
2120
no effect but is required when specifying a macro to distinguish the entry
 
2121
from a macro definition.
 
2122
To only respond to <quote>Direct</quote> queries for a host or pattern,
 
2123
it can be followed by the optional <literal>NOBROADCAST</literal> keyword.
 
2124
This can be used to prevent a &kdm; server from appearing on menus based on
 
2125
<quote>Broadcast</quote> queries.</para>
 
2126
 
 
2127
<para>An <quote>Indirect</quote> entry also contains a host name, pattern or
 
2128
macro, but follows it with a list of host names or macros to which the queries
 
2129
should be forwarded. <quote>Indirect</quote> entries can be excluding as well,
 
2130
in which case a (valid) dummy host name must be supplied to make the entry
 
2131
distinguishable from a <quote>Direct</quote> entry.
 
2132
If compiled with IPv6 support, multicast address groups may also be included
 
2133
in the list of addresses the queries are forwarded to.
 
2134
<!-- Not actually implemented!
 
2135
Multicast addresses may be followed by an optional <literal>/</literal>
 
2136
character and hop count. If no hop count is specified, the multicast hop count
 
2137
defaults to 1, keeping the packet on the local network. For IPv4 multicasting,
 
2138
the hop count is used as the TTL.
 
2139
-->
 
2140
If the indirect host list contains the keyword <literal>CHOOSER</literal>,
 
2141
<quote>Indirect</quote> queries are not forwarded, but instead a host chooser
 
2142
dialog is displayed by &kdm;. The chooser will send a <quote>Direct</quote>
 
2143
query to each of the remaining host names in the list and offer a menu of
 
2144
all the hosts that respond. The host list may contain the keyword
 
2145
<literal>BROADCAST</literal>, to make the chooser send a
 
2146
<quote>Broadcast</quote> query as well; note that on some operating systems,
 
2147
UDP packets cannot be broadcast, so this feature will not work.
 
2148
</para>
 
2149
 
 
2150
<para>When checking access for a particular display host, each entry is scanned
 
2151
in turn and the first matching entry determines the response.
 
2152
<quote>Direct</quote> and <quote>Broadcast</quote> entries are ignored when
 
2153
scanning for an <quote>Indirect</quote> entry and vice-versa.</para>
 
2154
 
 
2155
<para>A macro definition contains a macro name and a list of host names and
 
2156
other macros that the macro expands to. To distinguish macros from hostnames,
 
2157
macro names start with a <literal>%</literal> character.</para>
 
2158
 
 
2159
<para>The last entry type is the <literal>LISTEN</literal> directive.
 
2160
The formal syntax is
 
2161
<screen>
 
2162
<userinput>&nbsp;<literal>LISTEN</literal>&nbsp;[<replaceable>interface</replaceable>&nbsp;[<replaceable>multicast&nbsp;list</replaceable>]]</userinput>
 
2163
</screen>
 
2164
If one or more <literal>LISTEN</literal> lines are specified, &kdm; listens
 
2165
for &XDMCP; requests only on the specified interfaces.
 
2166
<replaceable>interface</replaceable> may be a hostname or IP address
 
2167
representing a network interface on this machine, or the wildcard
 
2168
<literal>*</literal> to represent all available network interfaces.
 
2169
If multicast group addresses are listed on a <literal>LISTEN</literal> line,
 
2170
&kdm; joins the multicast groups on the given interface. For IPv6 multicasts,
 
2171
the IANA has assigned ff0<replaceable>X</replaceable>:0:0:0:0:0:0:12b as the
 
2172
permanently assigned range of multicast addresses for &XDMCP;. The
 
2173
<replaceable>X</replaceable> in the prefix may be replaced by any valid scope
 
2174
identifier, such as 1 for Node-Local, 2 for Link-Local, 5 for Site-Local, and
 
2175
so on (see IETF RFC 2373 or its replacement for further details and scope
 
2176
definitions). &kdm; defaults to listening on the Link-Local scope address
 
2177
ff02:0:0:0:0:0:0:12b to most closely match the IPv4 subnet broadcast behavior. 
 
2178
If no <literal>LISTEN</literal> lines are given, &kdm; listens on all
 
2179
interfaces and joins the default &XDMCP; IPv6 multicast group (when
 
2180
compiled with IPv6 support).
 
2181
To disable listening for &XDMCP; requests altogether, a
 
2182
<literal>LISTEN</literal> line with no addresses may be specified, but using
 
2183
the <literal>[Xdmcp]</literal> <option>Enable</option> option is preferred.
 
2184
</para>
 
2185
 
 
2186
</sect1>
 
2187
 
 
2188
<sect1 id="kdm-scripts">
 
2189
<title>Supplementary programs</title>
 
2190
 
 
2191
<para>
 
2192
The following programs are run by &kdm; at various stages of a session.
 
2193
They typically are shell scripts.
 
2194
</para>
 
2195
 
 
2196
<para>
 
2197
The Setup, Startup and Reset programs are run as
 
2198
<systemitem class="username">root</systemitem>, so they should be careful
 
2199
about security.
 
2200
Their first argument is <literal>auto</literal> if the session results
 
2201
from an automatic login; otherwise, no arguments are passed to them.
 
2202
</para>
 
2203
 
 
2204
<sect2 id="kdmrc-xsetup">
 
2205
<title>Setup program</title>
 
2206
 
 
2207
<para>
 
2208
The <filename>Xsetup</filename> program is run after the &X-Server; is
 
2209
started or reset, but before the greeter is offered.
 
2210
This is the place to change the root background (if
 
2211
<option>UseBackground</option> is disabled) or bring up other windows that
 
2212
should appear on the screen along with the greeter. Resources for this
 
2213
program can be put into the file named by <option>Resources</option>.
 
2214
</para>
 
2215
 
 
2216
<para>
 
2217
In addition to any specified by <option>ExportList</option>,
 
2218
the following environment variables are passed:</para>
 
2219
<variablelist>
 
2220
 <varlistentry>
 
2221
  <term>DISPLAY</term>
 
2222
  <listitem><para>the associated display name</para></listitem>
 
2223
 </varlistentry>
 
2224
 <varlistentry>
 
2225
  <term>PATH</term>
 
2226
  <listitem><para>the value of <option>SystemPath</option></para></listitem>
 
2227
 </varlistentry>
 
2228
 <varlistentry>
 
2229
  <term>SHELL</term>
 
2230
  <listitem><para>the value of <option>SystemShell</option></para></listitem>
 
2231
 </varlistentry>
 
2232
 <varlistentry>
 
2233
  <term>XAUTHORITY</term>
 
2234
  <listitem><para>may be set to an authority file</para></listitem>
 
2235
 </varlistentry>
 
2236
 <varlistentry>
 
2237
  <term>DM_CONTROL</term>
 
2238
  <listitem><para>the value of <option>FifoDir</option></para></listitem>
 
2239
 </varlistentry>
 
2240
</variablelist>
 
2241
 
 
2242
<note><para><option>GrabInput</option> can make &kdm; grab the
 
2243
keyboard and mouse, making any other windows unable to receive input.
 
2244
If <option>GrabServer</option> is set, <filename>Xsetup</filename>
 
2245
will not be able to connect to the display at all.</para></note>
 
2246
 
 
2247
</sect2>
 
2248
 
 
2249
<sect2 id="kdmrc-xstartup">
 
2250
<title>Startup program</title>
 
2251
 
 
2252
<para>The <filename>Xstartup</filename> program is run as
 
2253
<systemitem class="username">root</systemitem> when the user logs in.
 
2254
This is the place to put commands which add entries to
 
2255
<filename>utmp</filename> (the <command>sessreg</command> program
 
2256
may be useful here), mount users' home directories from file servers,
 
2257
or abort the session if some requirements are not met (but note that on
 
2258
modern systems, many of these tasks are already taken care of by
 
2259
<acronym>PAM</acronym> modules).</para>
 
2260
 
 
2261
<para>In addition to any specified by <option>ExportList</option>,
 
2262
the following environment variables are passed:</para>
 
2263
<variablelist>
 
2264
 <varlistentry>
 
2265
  <term>DISPLAY</term>
 
2266
  <listitem><para>the associated display name</para></listitem>
 
2267
 </varlistentry>
 
2268
 <varlistentry>
 
2269
  <term>HOME</term>
 
2270
  <listitem><para>the initial working directory of the user</para></listitem>
 
2271
 </varlistentry>
 
2272
 <varlistentry>
 
2273
  <term>LOGNAME</term>
 
2274
  <listitem><para>the username</para></listitem>
 
2275
 </varlistentry>
 
2276
 <varlistentry>
 
2277
  <term>USER</term>
 
2278
  <listitem><para>the username</para></listitem>
 
2279
 </varlistentry>
 
2280
 <varlistentry>
 
2281
  <term>PATH</term>
 
2282
  <listitem><para>the value of <option>SystemPath</option></para></listitem>
 
2283
 </varlistentry>
 
2284
 <varlistentry>
 
2285
  <term>SHELL</term>
 
2286
  <listitem><para>the value of <option>SystemShell</option></para></listitem>
 
2287
 </varlistentry>
 
2288
 <varlistentry>
 
2289
  <term>XAUTHORITY</term>
 
2290
  <listitem><para>may be set to an authority file</para></listitem>
 
2291
 </varlistentry>
 
2292
 <varlistentry>
 
2293
  <term>DM_CONTROL</term>
 
2294
  <listitem><para>the value of <option>FifoDir</option></para></listitem>
 
2295
 </varlistentry>
 
2296
</variablelist>
 
2297
 
 
2298
<para>&kdm; waits until this program exits before starting the user session.
 
2299
If the exit value of this program is non-zero, &kdm; discontinues the session
 
2300
and starts another authentication cycle.</para>
 
2301
 
 
2302
</sect2>
 
2303
 
 
2304
<sect2 id="kdmrc-xsession">
 
2305
<title>Session program</title>
 
2306
 
 
2307
<para>The <filename>Xsession</filename> program is the command which is run
 
2308
as the user's session. It is run with the permissions of the authorized user.
 
2309
One of the keywords <literal>failsafe</literal>, <literal>default</literal>
 
2310
or <literal>custom</literal>, or a string to <command>eval</command> by a
 
2311
Bourne-compatible shell is passed as the first argument.</para>
 
2312
 
 
2313
<para>In addition to any specified by <option>ExportList</option>,
 
2314
the following environment variables are passed:</para>
 
2315
<variablelist>
 
2316
 <varlistentry>
 
2317
  <term>DISPLAY</term>
 
2318
  <listitem><para>the associated display name</para></listitem>
 
2319
 </varlistentry>
 
2320
 <varlistentry>
 
2321
  <term>HOME</term>
 
2322
  <listitem><para>the initial working directory of the user</para></listitem>
 
2323
 </varlistentry>
 
2324
 <varlistentry>
 
2325
  <term>LOGNAME</term>
 
2326
  <listitem><para>the username</para></listitem>
 
2327
 </varlistentry>
 
2328
 <varlistentry>
 
2329
  <term>USER</term>
 
2330
  <listitem><para>the username</para></listitem>
 
2331
 </varlistentry>
 
2332
 <varlistentry>
 
2333
  <term>PATH</term>
 
2334
  <listitem><para>the value of <option>UserPath</option>
 
2335
   (or <option>SystemPath</option> for
 
2336
   <systemitem class="username">root</systemitem> user sessions)</para>
 
2337
  </listitem>
 
2338
 </varlistentry>
 
2339
 <varlistentry>
 
2340
  <term>SHELL</term>
 
2341
  <listitem><para>the user's default shell</para></listitem>
 
2342
 </varlistentry>
 
2343
 <varlistentry>
 
2344
  <term>XAUTHORITY</term>
 
2345
  <listitem><para>may be set to a non-standard authority file</para></listitem>
 
2346
 </varlistentry>
 
2347
 <varlistentry>
 
2348
  <term>KRBTKFILE</term>
 
2349
  <listitem><para>may be set to a Kerberos4 credentials cache name</para>
 
2350
  </listitem>
 
2351
 </varlistentry>
 
2352
 <varlistentry>
 
2353
  <term>KRB5CCNAME</term>
 
2354
  <listitem><para>may be set to a Kerberos5 credentials cache name</para>
 
2355
  </listitem>
 
2356
 </varlistentry>
 
2357
 <varlistentry>
 
2358
  <term>DM_CONTROL</term>
 
2359
  <listitem><para>the value of <option>FifoDir</option></para></listitem>
 
2360
 </varlistentry>
 
2361
 <varlistentry>
 
2362
  <term>XDM_MANAGED</term>
 
2363
  <listitem><para>will contain a comma-separated list of parameters the
 
2364
   session might find interesting, like which conversation
 
2365
   plugin was used for the login</para>
 
2366
  </listitem>
 
2367
 </varlistentry>
 
2368
 <varlistentry>
 
2369
  <term>DESKTOP_SESSION</term>
 
2370
  <listitem><para>the name of the session the user has chosen to run</para>
 
2371
  </listitem>
 
2372
 </varlistentry>
 
2373
</variablelist>
 
2374
 
 
2375
</sect2>
 
2376
 
 
2377
<sect2 id="kdmrc-xreset">
 
2378
<title>Reset program</title>
 
2379
 
 
2380
<para>Symmetrical with <filename>Xstartup</filename>, the
 
2381
<filename>Xreset</filename> program is run after the user session has
 
2382
terminated. Run as <systemitem class="username">root</systemitem>, it should
 
2383
contain commands that undo the effects of commands in 
 
2384
<filename>Xstartup</filename>, removing entries from <filename>utmp</filename>
 
2385
or unmounting directories from file servers.</para>
 
2386
 
 
2387
<para>The environment variables that were passed to
 
2388
<filename>Xstartup</filename> are also passed to <filename>Xreset</filename>.
 
2389
</para>
 
2390
 
 
2391
</sect2>
 
2392
 
 
2393
</sect1>
 
2394
 
 
2395
</chapter>