Debian Codegraph @

docs/C/index.docbook

raw
1 <?xml version="1.0"?>
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
4 <!ENTITY legal SYSTEM "legal.xml">
5 <!ENTITY version "2.26.0">
6 <!ENTITY date "02/10/2009">
7 <!ENTITY mdash "&#8212;">
8 <!ENTITY percnt "&#x0025;">
9 ]>
10
11 <article id="index" lang="en">
12 <articleinfo>
13 <title>GNOME Display Manager Reference Manual</title>
14
15 <revhistory>
16 <revision>
17 <revnumber>0.0</revnumber>
18 <date>2008-09</date>
19 </revision>
20 </revhistory>
21
22 <abstract role="description">
23 <para>
24 GDM is the GNOME Display Manager, a graphical login program.
25 </para>
26 </abstract>
27
28 <authorgroup>
29 <author>
30 <firstname>Martin</firstname><othername>K.</othername>
31 <surname>Petersen</surname>
32 <affiliation>
33 <address><email>[email protected]</email></address>
34 </affiliation>
35 </author>
36 <author>
37 <firstname>George</firstname><surname>Lebl</surname>
38 <affiliation>
39 <address><email>[email protected]</email></address>
40 </affiliation>
41 </author>
42 <author>
43 <firstname>Jon</firstname><surname>McCann</surname>
44 <affiliation>
45 <address><email>[email protected]</email></address>
46 </affiliation>
47 </author>
48 <author>
49 <firstname>Ray</firstname><surname>Strode</surname>
50 <affiliation>
51 <address><email>[email protected]</email></address>
52 </affiliation>
53 </author>
54 <author role="maintainer">
55 <firstname>Brian</firstname><surname>Cameron</surname>
56 <affiliation>
57 <address><email>[email protected]</email></address>
58 </affiliation>
59 </author>
60 </authorgroup>
61 <copyright>
62 <year>1998</year>
63 <year>1999</year>
64 <holder>Martin K. Petersen</holder>
65 </copyright>
66 <copyright>
67 <year>2001</year>
68 <year>2003</year>
69 <year>2004</year>
70 <holder>George Lebl</holder>
71 </copyright>
72 <copyright>
73 <year>2003</year>
74 <year>2007</year>
75 <year>2008</year>
76 <holder>Red Hat, Inc.</holder>
77 </copyright>
78 <copyright>
79 <year>2003</year>
80 <year>2011</year>
81 <holder>Oracle and/or its affiliates. All rights reserved.</holder>
82 </copyright>
83
84 &legal;
85
86 <releaseinfo>
87 This manual describes version &version; of the GNOME Display Manager.
88 It was last updated on &date;.
89 </releaseinfo>
90 </articleinfo>
91
92 <!-- ============= Preface ================================== -->
93
94 <sect1 id="preface">
95 <title>Terms and Conventions Used in This Manual</title>
96
97 <para>
98 This manual describes version &version; of the GNOME Display Manager.
99 It was last updated on &date;.
100 </para>
101
102 <para>
103 Chooser - A program used to select a remote host for managing a
104 display remotely on the attached display (<command>gdm-host-chooser</command>).
105 </para>
106
107 <para>
108 FreeDesktop - The organization providing desktop standards, such as the
109 Desktop Entry Specification used by GDM.
110 <ulink type="http" url="https://www.freedesktop.org/">
111 https://www.freedesktop.org</ulink>.
112 </para>
113 <para>
114 GDM - GNOME Display Manager. Used to describe the software package as a
115 whole.
116 </para>
117
118 <para>
119 Greeter - The graphical login window (provided by <command>gnome-shell</command>).
120 </para>
121
122 <para>
123 PAM - Pluggable Authentication Mechanism
124 </para>
125
126 <para>
127 XDMCP - X Display Manage Protocol
128 </para>
129
130 <para>
131 Xserver - An implementation of the X Window System. For example the
132 Xorg Xserver provided by the X.org Foundation
133 <ulink type="http" url="https://www.x.org/">https://www.x.org</ulink>.
134 </para>
135
136 <para>
137 Paths that start with a word in angle brackets are relative to the
138 installation prefix. I.e. <filename>&lt;share&gt;/pixmaps/</filename>
139 refers to <filename>/usr/share/pixmaps</filename> if GDM was
140 configured with <command>--prefix=/usr</command>.
141 </para>
142 </sect1>
143
144 <!-- ============= Overview ================================= -->
145
146 <sect1 id="overview">
147 <title>Overview</title>
148
149 <sect2 id="introduction">
150 <title>Introduction</title>
151
152 <para>
153 The GNOME Display Manager (GDM) is a display manager that implements
154 all significant features required for managing attached and remote
155 displays. GDM was written from scratch and does not contain any XDM or
156 X Consortium code.
157 </para>
158
159 <para>
160 Note that GDM is configurable, and many configuration settings have
161 an impact on security. Issues to be aware of are highlighted in this
162 document.
163 </para>
164
165 <para>
166 Please note that some Operating Systems configure GDM to behave
167 differently than the default values as described in this document. If
168 GDM does not seem to behave as documented, then check to see if any
169 related configuration may be different than described here.
170 </para>
171
172 <para>
173 For further information about GDM, refer to the
174 <ulink type="http" url="https://gitlab.gnome.org/GNOME/gdm">project
175 website</ulink>.
176 </para>
177
178 <para>
179 For discussion or queries about GDM, refer to the discussion forum at
180 <ulink type="http" url="https://discourse.gnome.org/tag/gdm">
181 https://discourse.gnome.org/tag/gdm</ulink>.
182 The archives of the previous mailing list are also a good resource to
183 check to seek answers to common questions. The list was archived at
184 <ulink type="http" url="https://mail.gnome.org/archives/gdm-list/">
185 https://mail.gnome.org/archives/gdm-list/</ulink> and has a search
186 facility to look for messages with keywords.
187 </para>
188
189 <para>
190 Please submit any bug reports or enhancement requests to
191 <ulink type="http" url="https://gitlab.gnome.org/GNOME/gdm/-/issues/">
192 https://gitlab.gnome.org/GNOME/gdm/-/issues/</ulink>.
193 </para>
194 </sect2>
195
196 <sect2 id="stability">
197 <title>Interface Stability</title>
198
199 <para>
200 GDM 2.20 and earlier supported stable configuration interfaces.
201 However, the codebase was completely rewritten for GDM 2.22, and
202 is not completely backward compatible with older releases. This is
203 in part because things work differently, so some options just don't
204 make sense, in part because some options never made sense, and in
205 part because some functionality has not been reimplemented yet.
206 </para>
207
208 <para>
209 Interfaces which continue to be supported in a stable fashion include
210 the Init, PreSession, PostSession, PostLogin, and Xsession scripts.
211 Some daemon configuration options in the
212 <filename>&lt;etc&gt;/gdm/custom.conf</filename> file continue to be
213 supported. Also, the <filename>~/.dmrc</filename>, and face browser
214 image locations are still supported.
215 </para>
216
217 <para>
218 GDM 2.20 and earlier supported the ability to manage multiple displays
219 with separate graphics cards, such as used in terminal server
220 environments, login in a window via a program like Xnest or Xephyr, the
221 gdmsetup program, XML-based greeter themes, and the ability to run the
222 XDMCP chooser from the login screen. These features were not
223 added back during the 2.22 rewrite.
224 </para>
225
226 </sect2>
227
228 <sect2 id="functionaldesc">
229 <title>Functional Description</title>
230
231 <!--
232 <para>
233 TODO - Would be good to discuss D-Bus, perhaps the new GObject model,
234 and to explain the reasons why the rewrite made GDM better.
235 From a high-level overview perspective, rather than the
236 technical aspects.
237 </para>
238 -->
239
240 <para>
241 GDM is responsible for managing displays on the system. This includes
242 authenticating users, starting the user session, and terminating the
243 user session. GDM is configurable and the ways it can be configured
244 are described in the "Configuring GDM" section of this
245 document. GDM is also accessible for users with disabilities.
246 </para>
247
248 <para>
249 GDM provides the ability to manage the main console display, and
250 displays launched via VT. It is integrated with other programs,
251 such as the Fast User Switch Applet (FUSA) and gnome-screensaver
252 to manage multiple displays on the console via the Xserver Virtual
253 Terminal (VT) interface. It also can manage XDMCP displays.
254 </para>
255
256 <para>
257 Regardless of the display type, GDM will do the following when it
258 manages the display. It will start an Xserver process, then run the
259 <filename>Init</filename> script as the root user, and start the
260 greeter program on the display.
261 </para>
262
263 <para>
264 The greeter program is run as the unprivileged "gdm"
265 user/group. This user and group are described in the
266 "Security" section of this document. The main functions of
267 the greeter program are to provide a mechanism for selecting
268 an account for log in and to drive the dialogue between
269 the user and system when authenticating that account. The authentication
270 process is driven by Pluggable Authentication Modules (PAM). The PAM
271 modules determine what prompts (if any) are shown to the user to
272 authenticate. On the average system, the greeter program will request
273 a username and password for authentication. However some systems may
274 be configured to use supplemental mechanisms such as a fingerprint or
275 SmartCard readers. GDM can be configured to support these
276 alternatives in parallel with greeter login extensions and the
277 <command>--enable-split-authentication</command>
278 <filename>./configure</filename> option, or one at a
279 time via system PAM configuration.
280 </para>
281
282 <para>
283 The smartcard extension can be enabled or disabled via the
284 <filename>org.gnome.display-manager.extensions.smartcard.active</filename>
285 gsettings key.
286 </para>
287
288 <para>
289 Likewise, the fingerprint extension can be enabled or disabled via the
290 <filename>org.gnome.display-manager.extensions.fingerprint.active</filename>
291 gsettings key.
292 </para>
293
294 <para>
295 GDM and PAM can be configured to not require any
296 input, which will cause GDM to automatically log in and simply
297 start a session, which can be useful for some environments, such as
298 single user systems or kiosks.
299 </para>
300
301 <para>
302 In addition to authentication, the greeter program allows the user to
303 select which session to start and which language to use. Sessions are
304 defined by files that end in the .desktop suffix and more information
305 about these files can be found in the "GDM User Session and Language
306 Configuration" section of this document. By default, GDM is configured
307 to display a face browser so the user can select their user account by
308 clicking on an image instead of having to type their username. GDM
309 keeps track of the user's default session and language in the user's
310 <filename>~/.dmrc</filename> and will use these defaults if the user
311 did not pick a session or language in the login GUI.
312 </para>
313
314 <para>
315 After authenticating a user, the daemon runs the
316 <filename>PostLogin</filename> script as root, then runs the
317 <filename>PreSession</filename> script as root. After running these
318 scripts, the user session is started. When the user exits their
319 session, the <filename>PostSession</filename> script is run as root.
320 These scripts are provided as hooks for distributions and end-users
321 to customize how sessions are managed. For example, using these
322 hooks you could set up a machine which creates the user's $HOME
323 directory on the fly, and erases it on logout. The difference
324 between the <filename>PostLogin</filename> and
325 <filename>PreSession</filename> scripts is that
326 <filename>PostLogin</filename> is run before the pam_open_session call
327 so is the right place to do anything which should be run before the
328 user session is initialized. The <filename>PreSession</filename>
329 script is called after session initialization.
330 </para>
331 </sect2>
332
333 <sect2 id="greeterpanel">
334 <title>Greeter Panel</title>
335 <para>
336 The GDM greeter program displays a panel docked at the bottom of the
337 screen which provides additional functionality. When a user is
338 selected, the panel allows the user to select which session, language,
339 and keyboard layout to use after logging in. The keyboard layout
340 selector also changes the keyboard layout used when typing your
341 password. The panel also contains an area for login services to leave
342 status icons. Some example status icons include a battery icon for
343 current battery usage, and an icon for enabling accessibility features.
344 The greeter program also provides buttons which allow the user to
345 shutdown or restart the system. It is possible to configure GDM to not
346 provide the shutdown and restart buttons, if desired. GDM can also be
347 configured via PolicyKit (or via RBAC on Oracle Solaris) to require the
348 user have appropriate authorization before accepting the shutdown or
349 restart request.
350 </para>
351
352 <para>
353 Note that keyboard layout features are only available on systems that
354 support libxklavier.
355 </para>
356 </sect2>
357
358 <sect2 id="accessibility">
359 <title>Accessibility</title>
360
361 <para>
362 GDM supports "Accessible Login", allowing users to log into
363 their desktop session even if they cannot easily use the screen,
364 mouse, or keyboard in the usual way. Accessible Technology (AT)
365 features such as an on-screen keyboard, screen reader, screen
366 magnifier, and Xserver AccessX keyboard accessibility are available.
367 It is also possible to enable large text or high contrast icons and
368 controls, if needed. Refer to the "Accessibility
369 Configuration" section of the document for more information
370 how various accessibility features can be configured.
371 </para>
372
373 <para>
374 On some Operating Systems, it is necessary to make sure that the GDM
375 user is a member of the "audio" group for AT programs that
376 require audio output (such as text-to-speech) to be functional.
377 </para>
378 </sect2>
379
380 <sect2 id="facebrowser">
381 <title>The GDM Face Browser</title>
382
383 <para>
384 The Face Browser is the interface which allows users to select their
385 username by clicking on an image. This feature can be enabled or
386 disabled via the org.gnome.login-screen disable-user-list GSettings
387 key and is on by default. When disabled, users must type their
388 complete username by hand. When enabled, it displays all local users
389 which are available for login on the system (all user accounts defined
390 in the /etc/passwd file that have a valid shell and sufficiently high
391 UID) and remote users that have recently logged in.
392 The face browser in GDM 2.20 and earlier would attempt to display all
393 remote users, which caused performance problems in large,
394 enterprise deployments.
395 </para>
396
397 <para>
398 The Face Browser is configured to display the users who log in most
399 frequently at the top of the list. This helps to ensure that users
400 who log in frequently can quickly find their login image.
401 </para>
402
403 <para>
404 The Face Browser supports "type-ahead search" which dynamically
405 moves the face selection as the user types to the corresponding username
406 in the list. This means that a user with a long username will only
407 have to type the first few characters of the username before the correct
408 item in the list gets selected.
409 </para>
410
411 <para>
412 The icons used by GDM can be installed globally by the sysadmin or can
413 be located in the user's home directories. If installed globally
414 they should be in the <filename>&lt;share&gt;/pixmaps/faces/</filename>
415 directory and the filename should be the name of the user. Face image
416 files should be a standard image that GTK+ can read, such as PNG or
417 JPEG. Face icons placed in the global face directory must be readable
418 to the GDM user.
419 </para>
420
421 <!--
422 <para>
423 TODO - In the old GDM the ~/gnome2/gdm file is used, but the new code
424 seems to use ~/.gnome/gdm. Error?
425 </para>
426 -->
427 <para>
428 If there is no global icon for the user, GDM will look in the user's
429 $HOME directory for the image file. GDM will first look for the user's
430 face image in <filename>~/.face</filename>. If not found, it will try
431 <filename>~/.face.icon</filename>. If still not found, it will use the
432 value defined for "face/picture=" in the
433 <filename>~/.gnome2/gdm</filename> file.
434 </para>
435
436 <para>
437 If a user has no defined face image, GDM will use the
438 "stock_person" icon defined in the current GTK+ theme. If no
439 such image is defined, it will fallback to a generic face image.
440 </para>
441
442 <para>
443 Please note that loading and scaling face icons located in remote user
444 home directories can be a very time-consuming task. Since it not
445 practical to load images over NIS or NFS, GDM does not attempt to load
446 face images from remote home directories.
447 </para>
448
449 <para>
450 When the browser is turned on, valid usernames on the computer are
451 exposed for everyone to see. If XDMCP is enabled, then the usernames
452 are exposed to remote users. This, of course, limits security
453 somewhat since a malicious user does not need to guess valid usernames.
454 In some very restrictive environments the face browser may not be
455 appropriate.
456 </para>
457
458 </sect2>
459
460 <sect2 id="xdmcp">
461 <title>XDMCP</title>
462
463 <!--
464 <para>
465 TODO - What XDMCP features actually work? I know that the
466 chooser is missing.
467 </para>
468 -->
469
470 <para>
471 The GDM daemon can be configured to listen for and manage X Display
472 Manage Protocol (XDMCP) requests from remote displays. By default
473 XDMCP support is turned off, but can be enabled if desired. If GDM is
474 built with TCP Wrapper support, then the daemon will only grant access
475 to hosts specified in the GDM service section in the TCP Wrappers
476 configuration file.
477 </para>
478
479 <para>
480 GDM includes several measures making it more resistant to denial of
481 service attacks on the XDMCP service. A lot of the protocol
482 parameters, handshaking timeouts, etc. can be fine tuned. The default
483 configuration should work reasonably on most systems.
484 </para>
485
486 <para>
487 GDM by default listens for XDMCP requests on the normal UDP port used
488 for XDMCP, port 177, and will respond to QUERY and BROADCAST_QUERY
489 requests by sending a WILLING packet to the originator.
490 </para>
491
492 <para>
493 GDM can also be configured to honor INDIRECT queries and present a
494 host chooser to the remote display. GDM will remember the user's
495 choice and forward subsequent requests to the chosen manager. GDM
496 also supports an extension to the protocol which will make it forget
497 the redirection once the user's connection succeeds. This extension
498 is only supported if both daemons are GDM. It is transparent and
499 will be ignored by XDM or other daemons that implement XDMCP.
500 </para>
501
502 <para>
503 If XDMCP seems to not be working, make sure that all machines are
504 specified in <filename>/etc/hosts</filename>.
505 </para>
506
507 <para>
508 Refer to the "Security" section for information about
509 security concerns when using XDMCP.
510 </para>
511 </sect2>
512
513 <sect2 id="logging">
514 <title>Logging</title>
515
516 <para>
517 GDM uses syslog to log errors and status. It can also log debugging
518 information, which can be useful for tracking down problems if GDM is
519 not working properly. Debug output can be enabled by setting the
520 debug/Enable key to &quot;true&quot; in the
521 <filename>&lt;etc&gt;/gdm/custom.conf</filename> file.
522 </para>
523
524 <para>
525 Output from the various Xservers is stored in the GDM log directory,
526 which is normally <filename>&lt;var&gt;/log/gdm/</filename>. Any
527 Xserver messages are saved to a file associated with the display value,
528 <filename>&lt;display&gt;.log</filename>.
529 </para>
530
531 <para>
532 The session output is piped through the GDM daemon to the
533 <filename>~/<replaceable>$XDG_CACHE_HOME</replaceable>/gdm/session.log</filename>
534 file which usually expands to <filename>~/.cache/gdm/session.log</filename>.
535 The file is overwritten on each login, so logging out and logging back
536 into the same user via GDM will cause any messages from the previous
537 session to be lost.
538 </para>
539
540 <para>
541 Note that if GDM can not create this file for some reason, then a
542 fallback file will be created named <filename>~/<replaceable>$XDG_CACHE_HOME</replaceable>/gdm/session.log.XXXXXXXX</filename>
543 where the <filename>XXXXXXXX</filename> are some random characters.
544 </para>
545 </sect2>
546
547 <sect2 id="fusa">
548 <title>Fast User Switching</title>
549
550 <para>
551 GDM allows multiple users to be logged in at the same time. After one
552 user is logged in, additional users can log in via the User Switcher
553 on the GNOME Panel, or from the "Switch User" button in Lock Screen dialog
554 of GNOME Screensaver. The active session can be changed back and forth using
555 the same mechanism. Note that some distributions may not add the User Switcher
556 to the default panel configuration. It can be added using the panel context
557 menu.
558 </para>
559 <para>
560 Note this feature is available on systems that support Virtual
561 Terminals. This feature will not function if Virtual Terminals is not
562 available.
563 </para>
564 </sect2>
565 </sect1>
566
567 <!-- ============= Security ================================= -->
568
569 <sect1 id="security">
570 <title>Security</title>
571
572 <sect2 id="gdmuser">
573 <title>The GDM User And Group</title>
574
575 <para>
576 For security reasons a dedicated user and group id are recommended for
577 proper operation. This user and group are normally "gdm" on
578 most systems, but can be configured to any user or group. All GDM
579 GUI programs are run as this user, so that the programs which interact
580 with the user are run in a sandbox. This user and group should have
581 limited privilege.
582 </para>
583
584 <para>
585 The only special privilege the "gdm" user requires is the
586 ability to read and write Xauth files to the
587 <filename>&lt;var&gt;/run/gdm</filename> directory. The
588 <filename>&lt;var&gt;/run/gdm</filename> directory should have
589 root:gdm ownership and 1777 permissions.
590 </para>
591
592 <para>
593 You should not, under any circumstances, configure the GDM user/group
594 to a user which a user could easily gain access to, such as the user
595 <filename>nobody</filename>. Any user who gains access to an Xauth
596 key can snoop on and control running GUI programs running in the
597 associated session or perform a denial-of-service attack on it. It
598 is important to ensure that the system is configured properly so that
599 only the "gdm" user has access to these files and that it
600 is not easy to login to this account. For example, the account should
601 be setup to not have a password or allow non-root users to login to the
602 account.
603 </para>
604
605 <para>
606 The GDM greeter configuration is stored in GConf. To allow the GDM
607 user to be able to write configuration, it is necessary for the
608 "gdm" user to have a writable $HOME directory. Users may
609 configure the default GConf configuration as desired to avoid the
610 need to provide the "gdm" user with a writable $HOME
611 directory. However, some features of GDM may be disabled if it is
612 unable to write state information to GConf configuration.
613 </para>
614 </sect2>
615
616 <sect2 id="PAM">
617 <title>PAM</title>
618
619 <para>
620 GDM uses PAM for login authentication. PAM stands for Pluggable
621 Authentication Module, and is used by most programs that request
622 authentication on your computer. It allows the administrator to
623 configure specific authentication behavior for different login programs
624 (such as ssh, login GUI, screensaver, etc.)
625 </para>
626
627 <para>
628 PAM is complicated and highly configurable, and this documentation does
629 not intend to explain this in detail. Instead, it is intended to give
630 an overview of how PAM configuration relates with GDM, how PAM is
631 commonly configured with GDM, and known issues. It is expected that
632 a person needing to do PAM configuration would need to do further
633 reading of PAM documentation to understand how to configure PAM and
634 to understand terms used in this section.
635 </para>
636
637 <para>
638 PAM configuration has different, but similar, interfaces on different
639 Operating Systems, so check the
640 <ulink type="help" url="man:pam.d">pam.d</ulink> or
641 <ulink type="help" url="man:pam.conf">pam.conf</ulink> man page for
642 details. Be sure you read the PAM documentation and are comfortable
643 with the security implications of any changes you intend to make to
644 your configuration.
645 </para>
646
647 <para>
648 Note that, by default, GDM uses the "gdm" PAM service name
649 for normal login and the "gdm-autologin" PAM service name for
650 automatic login. These services may not be defined in your pam.d or
651 pam.conf configured file. If there is no entry, then GDM will use the
652 default PAM behavior. On most systems this should work fine.
653 However, the automatic login feature may not work if the gdm-autologin
654 service is not defined.
655 </para>
656
657 <para>
658 The <filename>PostLogin</filename> script is run before
659 pam_open_session is called, and the <filename>PreSession</filename>
660 script is called after. This allows the system administrator to add
661 any scripting to the login process either before or after PAM
662 initializes the session.
663 </para>
664
665 <para>
666 If you wish to make GDM work with other types of authentication
667 mechanisms (such as a fingerprint or SmartCard reader), then you should
668 implement this by using a PAM service module for the desired
669 authentication type rather than by trying to modify the GDM code
670 directly. Refer to the PAM documentation on your system.
671 </para>
672
673 <para>
674 PAM does have some limitations regarding being able to work with
675 multiple types of authentication at the same time, like supporting
676 the ability to accept either SmartCard and the ability to type the
677 username and password into the login program. There are techniques
678 that are used to make this work, and it is best to research how this
679 problem is commonly solved when setting up such a configuration.
680 </para>
681
682 <para>
683 If automatic login does not work on a system, check to see if the
684 "gdm-autologin" PAM stack is defined in the PAM configuration. For
685 this to work, it is necessary to use a PAM module that simply does no
686 authentication, or which simply returns PAM_SUCCESS from all of its
687 public interfaces. Assuming your system has a pam_allow.so PAM module
688 which does this, a PAM configuration to enable "gdm-autologin" would
689 look like this:
690 </para>
691
692 <screen>
693 gdm-autologin auth required pam_unix_cred.so.1
694 gdm-autologin auth sufficient pam_allow.so.1
695 gdm-autologin account sufficient pam_allow.so.1
696 gdm-autologin session sufficient pam_allow.so.1
697 gdm-autologin password sufficient pam_allow.so.1
698 </screen>
699
700 <para>
701 The above setup will cause no lastlog entry to be generated. If a
702 lastlog entry is desired, then use the following for the session:
703 </para>
704
705 <screen>
706 gdm-autologin session required pam_unix_session.so.1
707 </screen>
708
709 <para>
710 If the computer is used by several people, which makes automatic login
711 unsuitable, you may want to allow some users to log in without entering
712 their password. This feature can be enabled as a per-user option in
713 the users-admin tool from the gnome-system-tools; it is achieved by
714 checking that the user is member a Unix group called
715 "nopasswdlogin" before asking for a password. For this to work,
716 the PAM configuration file for the "gdm" service must include
717 a line such as:
718 </para>
719
720 <screen>
721 gdm auth sufficient pam_succeed_if.so user ingroup nopasswdlogin
722 </screen>
723
724 </sect2>
725
726 <sect2 id="utmpwtmp">
727 <title>utmp and wtmp</title>
728
729 <para>
730 GDM generates utmp and wtmp User Accounting Database entries upon
731 session login and logout. The utmp database contains user access
732 and accounting information that is accessed by commands such as
733 <command>finger</command>, <command>last</command>,
734 <command>login</command>, and <command>who</command>. The wtmp
735 database contains the history of user access and accounting
736 information for the utmp database. Refer to the
737 <ulink type="help" url="man:utmp">utmp</ulink> and
738 <ulink type="help" url="man:wtmp">wtmp</ulink>
739 man pages on your system for more information.
740 </para>
741 </sect2>
742
743 <sect2 id="xauth">
744 <title>Xserver Authentication Scheme</title>
745
746 <para>
747 Xserver authorization files are stored in a newly created subdirectory
748 of <filename>&lt;var&gt;/run/gdm</filename> at start up. These files
749 are used to store and share a "password" between X clients
750 and the Xserver. This "password" is unique for each session
751 logged in, so users from one session can't snoop on users from another.
752 </para>
753
754 <para>
755 GDM only supports the MIT-MAGIC-COOKIE-1 Xserver authentication
756 scheme. Normally little is gained from the other schemes, and no
757 effort has been made to implement them so far. Be especially
758 careful about using XDMCP because the Xserver authentication cookie
759 goes over the wire as clear text. If snooping is possible, then an
760 attacker could simply snoop your authentication password as you log in,
761 regardless of the authentication scheme being used. If snooping is
762 possible and undesirable, then you should use ssh for tunneling an X
763 connection rather then using XDMCP. You could think of XDMCP as a sort
764 of graphical telnet, having the same security issues. In most cases,
765 ssh -Y should be preferred over GDM's XDMCP features.
766 </para>
767
768 </sect2>
769
770 <sect2 id="xdmcpsecurity">
771 <title>XDMCP Security</title>
772
773 <para>
774 Even though your display is protected by cookies, XEvents and thus
775 keystrokes typed when entering passwords will still go over the wire in
776 clear text. It is trivial to capture these.
777 </para>
778
779 <para>
780 XDMCP is primarily useful for running thin clients such as in terminal
781 labs. Those thin clients will only ever need the network to access
782 the server, and so it seems like the best security policy to have
783 those thin clients on a separate network that cannot be accessed by
784 the outside world, and can only connect to the server. The only point
785 from which you need to access outside is the server. This type of set up
786 should never use an unmanaged hub or other sniffable network.
787 </para>
788
789 </sect2>
790
791 <sect2 id="xdmcpaccess">
792 <title>XDMCP Access Control</title>
793
794 <para>
795 XDMCP access control is done using TCP wrappers. It is possible to
796 compile GDM without TCP wrapper support, so this feature may not be
797 supported on some Operating Systems.
798 </para>
799
800 <para>
801 You should use the daemon name <command>gdm</command> in the
802 <filename>&lt;etc&gt;/hosts.allow</filename> and
803 <filename>&lt;etc&gt;/hosts.deny</filename> files. For example to
804 deny computers from <filename>.evil.domain</filename> from logging in,
805 then add
806 </para>
807 <screen>
808 gdm: .evil.domain
809 </screen>
810 <para>
811 to <filename>&lt;etc&gt;/hosts.deny</filename>. You may also need
812 to add
813 </para>
814 <screen>
815 gdm: .your.domain
816 </screen>
817 <para>
818 to your <filename>&lt;etc&gt;/hosts.allow</filename> if you normally
819 disallow all services from all hosts. See the
820 <ulink type="help" url="man:hosts.allow">hosts.allow(5)</ulink> man
821 page for details.
822 </para>
823 </sect2>
824
825 <sect2 id="firewall">
826 <title>Firewall Security</title>
827
828 <para>
829 Even though GDM tries to outsmart potential attackers trying to take
830 advantage of XDMCP, it is still advised that you block the XDMCP port
831 (normally UDP port 177) on your firewall unless really needed. GDM
832 guards against denial of service attacks, but the X protocol is still
833 inherently insecure and should only be used in controlled environments.
834 Also each remote connection takes up lots of resources, so it is much
835 easier to do a denial of service attack via XDMCP than attacking a
836 webserver.
837 </para>
838
839 <para>
840 It is also wise to block all of the Xserver ports. These are TCP
841 ports 6000+ (one for each display number) on your firewall. Note that
842 GDM will use display numbers 20 and higher for flexible on-demand
843 servers.
844 </para>
845
846 <para>
847 X is not a very safe protocol when using it over the Internet, and
848 XDMCP is even less safe.
849 </para>
850 </sect2>
851
852 <sect2 id="policykit">
853 <title>PolicyKit</title>
854
855 <!--
856 <para>
857 TODO - Should we say more?
858 </para>
859 -->
860
861 <para>
862 GDM may be configured to use PolicyKit to allow the system
863 administrator to control whether the login screen should provide
864 the shutdown and restart buttons on the greeter screen.
865 </para>
866
867 <para>
868 These buttons are controlled by the
869 <filename>org.freedesktop.consolekit.system.stop-multiple-users</filename>
870 and
871 <filename>org.freedesktop.consolekit.system.restart-multiple-users</filename>
872 actions respectively. Policy for these actions can be set up using the
873 polkit-gnome-authorization tool, or the polkit-auth command line program.
874 </para>
875
876 </sect2>
877
878 <sect2 id="rbac">
879 <title>RBAC (Role Based Access Control)</title>
880
881 <para>
882 GDM may be configured to use RBAC instead of PolicyKit. In this
883 case the RBAC configuration is used to control whether the login screen
884 should provide the shutdown and restart buttons on the greeter screen.
885 </para>
886
887 <para>
888 For example, on Oracle Solaris, the "solaris.system.shutdown"
889 authorization is used to control this. Simply modify the
890 <filename>/etc/user_attr</filename> file so that the "gdm"
891 user has this authorization.
892 </para>
893 </sect2>
894
895 </sect1>
896
897 <!-- ============= ConsoleKit ================================ -->
898
899 <sect1 id="consolekit">
900 <title>Support for ConsoleKit</title>
901
902 <!--
903 <para>
904 TODO - Should we update these docs? Probably should mention any
905 configuration that users may want to do for using it with GDM?
906 If so, perhaps this section should be moved to a subsection of
907 the "Configure" section?
908 </para>
909 -->
910
911 <para>
912 GDM includes support for publishing user login information with the user
913 and login session accounting framework known as ConsoleKit. ConsoleKit
914 is able to keep track of all the users currently logged in. In this
915 respect, it can be used as a replacement for the utmp or utmpx files that
916 are available on most Unix-like Operating Systems.
917 </para>
918
919 <para>
920 When GDM is about to create a new login process for a user it will call
921 a privileged method of ConsoleKit in order to open a new session for this
922 user. At this time GDM also provides ConsoleKit with information about
923 this user session such as: the user ID, the X11 Display name that will be
924 associated with the session, the host-name from which the session
925 originates (useful in the case of an XDMCP session), whether or not this
926 session is attached, etc. As the entity that initiates the user process,
927 GDM is in a unique position to know about the user session and to be
928 trusted to provide these bits of information. The use of this privileged
929 method is restricted by the use of the D-Bus system message bus security
930 policy.
931 </para>
932
933 <para>
934 In case a user with an existing session has authenticated
935 at GDM and requests to resume that existing session, GDM calls a
936 privileged method of ConsoleKit to unlock that session. The exact
937 details of what happens when the session receives this unlock signal are
938 undefined and session-specific. However, most sessions will unlock a
939 screensaver in response.
940 </para>
941
942 <para>
943 When the user chooses to log out, or if GDM or the session quit
944 unexpectedly the user session will be unregistered from ConsoleKit.
945 </para>
946 </sect1>
947
948 <!-- ============= Configuration ============================= -->
949
950 <sect1 id="configuration">
951 <title>Configuration</title>
952
953 <para>
954 GDM has a number of configuration interfaces. These include scripting
955 integration points, daemon configuration, greeter configuration,
956 general session settings, integration with gnome-settings-daemon
957 configuration, and session configuration. These types of integration are
958 described in detail below.
959 </para>
960
961 <sect2 id="scripting">
962 <title>Scripting Integration Points</title>
963
964 <para>
965 The GDM script integration points can be found in the
966 <filename>&lt;etc&gt;/gdm/</filename> directory:
967 </para>
968
969 <screen>
970 Xsession
971 Init/
972 PostLogin/
973 PreSession/
974 PostSession/
975 </screen>
976
977 <para>
978 The <filename>Init</filename>, <filename>PostLogin</filename>,
979 <filename>PreSession</filename>, and <filename>PostSession</filename>
980 scripts all work as described below.
981 </para>
982
983 <para>
984 For each type of script, the default one which will be executed is
985 called "Default" and is stored in a directory associated with
986 the script type. So the default <filename>Init</filename> script is
987 <filename>&lt;etc&gt;/gdm/Init/Default</filename>. A per-display
988 script can be provided, and if it exists it will be run instead of the
989 default script. Such scripts are stored in the same directory as the
990 default script and have the same name as the Xserver DISPLAY value for
991 that display. For example, if the <filename>&lt;Init&gt;/:0</filename>
992 script exists, it will be run for DISPLAY ":0".
993 </para>
994
995 <para>
996 All of these scripts are run with root privilege and return 0 if run
997 successfully, and a non-zero return code if there was any failure that
998 should cause the login session to be aborted. Also note that GDM will
999 block until the scripts finish, so if any of these scripts hang, this
1000 will cause the login process to also hang.
1001 </para>
1002
1003 <para>
1004 When the Xserver for the login GUI has been successfully started, but
1005 before the login GUI is actually displayed, GDM will run the
1006 <filename>Init</filename> script. This script is useful for starting
1007 programs that should be run while the login screen is showing, or for
1008 doing any special initialization if required.
1009 </para>
1010
1011 <para>
1012 After the user has been successfully authenticated GDM will run the
1013 <filename>PostLogin</filename> script. This is done before any session
1014 setup has been done, including before the pam_open_session call. This
1015 script is useful for doing any session initialization that needs to
1016 happen before the session starts. For example, you might setup the
1017 user's $HOME directory if needed.
1018 </para>
1019
1020 <para>
1021 After the user session has been initialized, GDM will run the
1022 <filename>PreSession</filename> script. This script is useful for
1023 doing any session initialization that needs to happen after the
1024 session has been initialized. It can be used for session management or
1025 accounting, for example.
1026 </para>
1027
1028 <para>
1029 When a user terminates their session, GDM will run the
1030 <filename>PostSession</filename> script. Note that the Xserver will
1031 have been stopped by the time this script is run, so it should not be
1032 accessed.
1033 </para>
1034
1035 <para>
1036 Note that the <filename>PostSession</filename> script will be run
1037 even when the display fails to respond due to an I/O error or
1038 similar. Thus, there is no guarantee that X applications will work
1039 during script execution.
1040 </para>
1041
1042 <para>
1043 All of the above scripts will set the
1044 <filename>$RUNNING_UNDER_GDM</filename> environment variable to
1045 <filename>yes</filename>. If the scripts are also shared with other
1046 display managers, this allows you to identify when GDM is calling these
1047 scripts, so you can run specific code when GDM is used.
1048 </para>
1049 </sect2>
1050
1051 <sect2 id="autostart">
1052 <title>Autostart Configuration</title>
1053
1054 <para>
1055 The <filename>&lt;share&gt;/gdm/autostart/LoginWindow</filename>
1056 directory contains files in the format specified by the
1057 "FreeDesktop.org Desktop Application Autostart
1058 Specification". Standard features in the specification may be
1059 used to specify programs that should auto-restart or only be launched
1060 if a GConf configuration value is set, etc.
1061 </para>
1062
1063 <para>
1064 Any <filename>.desktop</filename> files in this directory will cause
1065 the associated program to automatically start with the login GUI
1066 greeter. By default, GDM is shipped with files which will autostart
1067 the gdm-simple-greeter login GUI greeter itself, the
1068 gnome-power-manager application, the gnome-settings-daemon, and the
1069 metacity window manager. These programs are needed for the greeter
1070 program to work. In addition, desktop files are provided for starting
1071 various AT programs if the configuration values specified in the
1072 Accessibility Configuration section below are set.
1073 </para>
1074 </sect2>
1075
1076 <sect2 id="xsessionscript">
1077 <title>Xsession Script</title>
1078
1079 <para>
1080 There is also an <filename>Xsession</filename> script located at
1081 <filename>&lt;etc&gt;/gdm/Xsession</filename> which is called between
1082 the <filename>PreSession</filename> and the
1083 <filename>PostSession</filename> scripts. This script does not
1084 support per-display like the other scripts. This script is used for
1085 actually starting the user session. This script is run as the user,
1086 and it will run whatever session was specified by the Desktop session
1087 file the user selected to start.
1088 </para>
1089 </sect2>
1090
1091 <sect2 id="daemonconfig">
1092 <title>Daemon Configuration</title>
1093
1094 <para>
1095 The GDM daemon is configured using the
1096 <filename>&lt;etc&gt;/gdm/custom.conf</filename> file. Default
1097 values are stored in GConf in the <filename>gdm.schemas</filename>
1098 file. It is recommended that end-users modify the
1099 <filename>&lt;etc&gt;/gdm/custom.conf</filename> file because the
1100 schemas file may be overwritten when the user updates their system to
1101 have a newer version of GDM.
1102 </para>
1103
1104 <para>
1105 Note that older versions of GDM supported additional configuration
1106 options which are no longer supported in the latest versions of GDM.
1107 </para>
1108
1109 <para>
1110 The <filename>&lt;etc&gt;/gdm/custom.conf</filename> file is in the
1111 <filename>keyfile</filename> format. Keywords in brackets
1112 define group sections, strings before an equal sign (=) are keys and
1113 the data after equal sign represents their value. Empty lines or
1114 lines starting with the hash mark (#) are ignored.
1115 </para>
1116
1117 <para>
1118 The file <filename>&lt;etc&gt;/gdm/custom.conf</filename> supports the
1119 "[daemon]", "[security]", and "[xdmcp]"
1120 group sections. Within each group, there are particular key/value
1121 pairs that can be specified to modify how GDM behaves. For example,
1122 to enable timed login and specify the timed login user to be a user
1123 named "you", you would modify the file so it contains the
1124 following lines:
1125 </para>
1126
1127 <screen>
1128 [daemon]
1129 TimedLoginEnable=true
1130 TimedLogin=you
1131 </screen>
1132
1133 <para>
1134 A full list of supported configuration keys follow:
1135 </para>
1136
1137 <sect3 id="choosersection">
1138 <title>[chooser]</title>
1139 <variablelist>
1140
1141 <varlistentry>
1142 <term>Multicast</term>
1143 <listitem>
1144 <synopsis>Multicast=false</synopsis>
1145 <para>
1146 If true and IPv6 is enabled, the chooser will send a multicast
1147 query to the local network and collect responses from the hosts
1148 who have joined multicast group.
1149 </para>
1150 </listitem>
1151 </varlistentry>
1152
1153 <varlistentry>
1154 <term>MulticastAddr</term>
1155 <listitem>
1156 <synopsis>MulticastAddr=ff02::1</synopsis>
1157 <para>
1158 This is the Link-local multicast address.
1159 </para>
1160 </listitem>
1161 </varlistentry>
1162 </variablelist>
1163 </sect3>
1164
1165 <sect3 id="daemonsection">
1166 <title>[daemon]</title>
1167 <variablelist>
1168 <varlistentry>
1169 <term>TimedLoginEnable</term>
1170 <listitem>
1171 <synopsis>TimedLoginEnable=false</synopsis>
1172 <para>
1173 If the user given in <filename>TimedLogin</filename> should be
1174 logged in after a number of seconds (set with
1175 <filename>TimedLoginDelay</filename>) of inactivity on the
1176 login screen. This is useful for public access terminals or
1177 perhaps even home use. If the user uses the keyboard or
1178 browses the menus, the timeout will be reset to
1179 <filename>TimedLoginDelay</filename> or 30 seconds, whichever
1180 is higher. If the user does not enter a username but just
1181 hits the ENTER key while the login program is requesting the
1182 username, then GDM will assume the user wants to login
1183 immediately as the timed user. Note that no password will be
1184 asked for this user so you should be careful, although if using
1185 PAM it can be configured to require password entry before
1186 allowing login. Refer to the "Security->PAM"
1187 section of the manual for more information, or for help if this
1188 feature does not seem to work.
1189 </para>
1190 </listitem>
1191 </varlistentry>
1192
1193 <varlistentry>
1194 <term>TimedLogin</term>
1195 <listitem>
1196 <synopsis>TimedLogin=</synopsis>
1197 <para>
1198 This is the user that should be logged in after a specified
1199 number of seconds of inactivity.
1200 </para>
1201 <para>
1202 If the value ends with a vertical bar | (the pipe symbol),
1203 then GDM will execute the program specified and use whatever
1204 value is returned on standard out from the program as the user.
1205 The program is run with the DISPLAY environment variable set so
1206 that it is possible to specify the user in a per-display
1207 fashion. For example if the value is "/usr/bin/getloginuser|",
1208 then the program "/usr/bin/getloginuser" will be run to get the
1209 user value.
1210 </para>
1211 </listitem>
1212 </varlistentry>
1213
1214 <varlistentry>
1215 <term>TimedLoginDelay</term>
1216 <listitem>
1217 <synopsis>TimedLoginDelay=30</synopsis>
1218 <para>
1219 Delay in seconds before the <filename>TimedLogin</filename>
1220 user will be logged in.
1221 </para>
1222 </listitem>
1223 </varlistentry>
1224
1225 <varlistentry>
1226 <term>AutomaticLoginEnable</term>
1227 <listitem>
1228 <synopsis>AutomaticLoginEnable=false</synopsis>
1229 <para>
1230 If true, the user given in <filename>AutomaticLogin</filename>
1231 should be logged in immediately. This feature is like timed
1232 login with a delay of 0 seconds.
1233 </para>
1234 </listitem>
1235 </varlistentry>
1236
1237 <varlistentry>
1238 <term>AutomaticLogin</term>
1239 <listitem>
1240 <synopsis>AutomaticLogin=</synopsis>
1241 <para>
1242 This is the user that should be logged in immediately if
1243 <filename>AutomaticLoginEnable</filename> is true.
1244 </para>
1245 <para>
1246 If the value ends with a vertical bar | (the pipe symbol),
1247 then GDM will execute the program specified and use whatever
1248 value is returned on standard out from the program as the user.
1249 The program is run with the DISPLAY environment variable set so
1250 that it is possible to specify the user in a per-display
1251 fashion. For example if the value is "/usr/bin/getloginuser|",
1252 then the program "/usr/bin/getloginuser" will be run to get the
1253 user value.
1254 </para>
1255 </listitem>
1256 </varlistentry>
1257
1258 <varlistentry>
1259 <term>User</term>
1260 <listitem>
1261 <synopsis>User=gdm</synopsis>
1262 <para>
1263 The username under which the greeter and other GUI programs
1264 are run. Refer to the <filename>User</filename>
1265 configuration key and to the "Security->GDM User And
1266 Group" section of this document for more information.
1267 </para>
1268 </listitem>
1269 </varlistentry>
1270
1271 <varlistentry>
1272 <term>Group</term>
1273 <listitem>
1274 <synopsis>Group=gdm</synopsis>
1275 <para>
1276 The group name under which the greeter and other GUI programs
1277 are run. Refer to the <filename>Group</filename>
1278 configuration key and to the "Security->GDM User And
1279 Group" section of this document for more information.
1280 </para>
1281 </listitem>
1282 </varlistentry>
1283 </variablelist>
1284 </sect3>
1285
1286 <sect3 id="debugsection">
1287 <title>Debug Options</title>
1288
1289 <variablelist>
1290 <title>[debug]</title>
1291
1292 <varlistentry>
1293 <term>Enable</term>
1294 <listitem>
1295 <synopsis>Enable=false</synopsis>
1296 <para>
1297 To enable debugging, set the debug/Enable key to
1298 &quot;true&quot; in the
1299 <filename>&lt;etc&gt;/gdm/custom.conf</filename>
1300 file and restart GDM. Then debug output will be sent to the
1301 system log file (<filename>&lt;var&gt;/log/messages</filename>
1302 or <filename>&lt;var&gt;/adm/messages</filename> depending on
1303 your Operating System).
1304 </para>
1305 </listitem>
1306 </varlistentry>
1307 </variablelist>
1308 </sect3>
1309
1310 <sect3 id="securitysection">
1311 <title>Security Options</title>
1312
1313 <variablelist>
1314 <title>[security]</title>
1315
1316 <varlistentry>
1317 <term>DisallowTCP</term>
1318 <listitem>
1319 <synopsis>DisallowTCP=true</synopsis>
1320 <para>
1321 If true, then always append <filename>-nolisten tcp</filename>
1322 to the command line when starting attached Xservers, thus
1323 disallowing TCP connection. This is a more secure
1324 configuration if you are not using remote connections.
1325 </para>
1326 </listitem>
1327 </varlistentry>
1328 </variablelist>
1329 </sect3>
1330
1331 <sect3 id="xdmcpsection">
1332 <title>XDCMP Support</title>
1333
1334 <variablelist>
1335 <title>[xdmcp]</title>
1336
1337 <varlistentry>
1338 <term>DisplaysPerHost</term>
1339 <listitem>
1340 <synopsis>DisplaysPerHost=1</synopsis>
1341 <para>
1342 To prevent attackers from filling up the pending queue, GDM
1343 will only allow one connection for each remote computer. If
1344 you want to provide display services to computers with more
1345 than one screen, you should increase this value.
1346 </para>
1347
1348 <para>
1349 Note that the number of attached DISPLAYS allowed is not
1350 limited. Only remote connections via XDMCP are limited by
1351 this configuration option.
1352 </para>
1353 </listitem>
1354 </varlistentry>
1355
1356 <varlistentry>
1357 <term>Enable</term>
1358 <listitem>
1359 <synopsis>Enable=false</synopsis>
1360 <para>
1361 Setting this to true enables XDMCP support allowing remote
1362 displays/X terminals to be managed by GDM.
1363 </para>
1364
1365 <para>
1366 <filename>gdm</filename> listens for requests on UDP port 177.
1367 See the Port option for more information.
1368 </para>
1369
1370 <para>
1371 If GDM is compiled to support it, access from remote displays
1372 can be controlled using the TCP Wrappers library. The service
1373 name is <filename>gdm</filename>
1374 </para>
1375
1376 <para>
1377 You should add
1378 <screen>
1379 gdm:.my.domain
1380 </screen>
1381 to your <filename>&lt;etc&gt;/hosts.allow</filename>, depending
1382 on your TCP Wrappers configuration. See the
1383 <ulink type="help" url="man:hosts.allow">hosts.allow</ulink>
1384 man page for details.
1385 </para>
1386
1387 <para>
1388 Please note that XDMCP is not a particularly secure protocol
1389 and that it is a good idea to block UDP port 177 on your
1390 firewall unless you really need it.
1391 </para>
1392 </listitem>
1393 </varlistentry>
1394
1395 <varlistentry>
1396 <term>HonorIndirect</term>
1397 <listitem>
1398 <synopsis>HonorIndirect=true</synopsis>
1399 <para>
1400 Enables XDMCP INDIRECT choosing (i.e. remote execution of
1401 <filename>gdmchooser</filename>) for X-terminals which do not
1402 supply their own display browser.
1403 </para>
1404 </listitem>
1405 </varlistentry>
1406
1407 <varlistentry>
1408 <term>MaxPending</term>
1409 <listitem>
1410 <synopsis>MaxPending=4</synopsis>
1411 <para>
1412 To avoid denial of service attacks, GDM has fixed size queue
1413 of pending connections. Only MaxPending displays can start at
1414 the same time.
1415 </para>
1416
1417 <para>
1418 Please note that this parameter does not limit the number of
1419 remote displays which can be managed. It only limits the number
1420 of displays initiating a connection simultaneously.
1421 </para>
1422 </listitem>
1423 </varlistentry>
1424
1425 <varlistentry>
1426 <term>MaxSessions</term>
1427 <listitem>
1428 <synopsis>MaxSessions=16</synopsis>
1429 <para>
1430 Determines the maximum number of remote display connections
1431 which will be managed simultaneously. I.e. the total number of
1432 remote displays that can use your host.
1433 </para>
1434 </listitem>
1435 </varlistentry>
1436
1437 <varlistentry>
1438 <term>MaxWait</term>
1439 <listitem>
1440 <synopsis>MaxWait=30</synopsis>
1441 <para>
1442 When GDM is ready to manage a display an ACCEPT packet is sent
1443 to it containing a unique session id which will be used in
1444 future XDMCP conversations.
1445 </para>
1446
1447 <para>
1448 GDM will then place the session id in the pending queue
1449 waiting for the display to respond with a MANAGE request.
1450 </para>
1451
1452 <para>
1453 If no response is received within MaxWait seconds, GDM will
1454 declare the display dead and erase it from the pending queue
1455 freeing up the slot for other displays.
1456 </para>
1457 </listitem>
1458 </varlistentry>
1459
1460 <varlistentry>
1461 <term>MaxWaitIndirect</term>
1462 <listitem>
1463 <synopsis>MaxWaitIndirect=30</synopsis>
1464 <para>
1465 The MaxWaitIndirect parameter determines the maximum number of
1466 seconds between the time where a user chooses a host and the
1467 subsequent indirect query where the user is connected to the
1468 host. When the timeout is exceeded, the information about the
1469 chosen host is forgotten and the indirect slot freed up for
1470 other displays. The information may be forgotten earlier if
1471 there are more hosts trying to send indirect queries then
1472 <filename>MaxPendingIndirect</filename>.
1473 </para>
1474 </listitem>
1475 </varlistentry>
1476
1477 <varlistentry>
1478 <term>Port</term>
1479 <listitem>
1480 <synopsis>Port=177</synopsis>
1481 <para>
1482 The UDP port number <filename>gdm</filename> should listen to
1483 for XDMCP requests. Do not change this unless you know what
1484 you are doing.
1485 </para>
1486 </listitem>
1487 </varlistentry>
1488
1489 <varlistentry>
1490 <term>Willing</term>
1491 <listitem>
1492 <synopsis>Willing=&lt;etc&gt;/gdm/Xwilling</synopsis>
1493 <para>
1494 When the machine sends a WILLING packet back after a QUERY it
1495 sends a string that gives the current status of this server.
1496 The default message is the system ID, but it is possible to
1497 create a script that displays customized message. If this
1498 script does not exist or this key is empty the default message
1499 is sent. If this script succeeds and produces some output,
1500 the first line of it's output is sent (and only the first
1501 line). It runs at most once every 3 seconds to prevent
1502 possible denial of service by flooding the machine with QUERY
1503 packets.
1504 </para>
1505 </listitem>
1506 </varlistentry>
1507 </variablelist>
1508 </sect3>
1509 </sect2>
1510
1511 <sect2 id="greeterconfiguration">
1512 <title>Simple Greeter Configuration</title>
1513
1514 <para>
1515 The GDM default greeter is called the simple Greeter and is
1516 configured via GConf. Default values are stored in GConf in the
1517 <filename>gdm-simple-greeter.schemas</filename> file. These defaults
1518 can be overridden if the "gdm" user has a writable $HOME
1519 directory to store GConf settings. These values can be edited using
1520 the <command>gconftool-2</command> or <command>gconf-editor</command>
1521 programs. The following configuration options are supported:
1522 </para>
1523
1524 <variablelist>
1525 <title>Greeter Configuration Keys</title>
1526
1527 <varlistentry>
1528 <term>/apps/gdm/simple-greeter/banner_message_enable</term>
1529 <listitem>
1530 <synopsis>false (boolean)</synopsis>
1531 <para>
1532 Controls whether the banner message text is displayed.
1533 </para>
1534 </listitem>
1535 </varlistentry>
1536
1537 <varlistentry>
1538 <term>/apps/gdm/simple-greeter/banner_message_text</term>
1539 <listitem>
1540 <synopsis>NULL (string)</synopsis>
1541 <para>
1542 Specifies the text banner message to show on the greeter
1543 window.
1544 </para>
1545 </listitem>
1546 </varlistentry>
1547
1548 <varlistentry>
1549 <term>/apps/gdm/simple-greeter/disable_restart_buttons</term>
1550 <listitem>
1551 <synopsis>false (boolean)</synopsis>
1552 <para>
1553 Controls whether to show the restart buttons in the login
1554 window.
1555 </para>
1556 </listitem>
1557 </varlistentry>
1558
1559 <varlistentry>
1560 <term>/apps/gdm/simple-greeter/disable_user_list</term>
1561 <listitem>
1562 <synopsis>false (boolean)</synopsis>
1563 <para>
1564 If true, then the face browser with known users is not shown
1565 in the login window.
1566 </para>
1567 </listitem>
1568 </varlistentry>
1569
1570 <varlistentry>
1571 <term>/apps/gdm/simple-greeter/logo_icon_name</term>
1572 <listitem>
1573 <synopsis>computer (string)</synopsis>
1574 <para>
1575 Set to the themed icon name to use for the greeter logo.
1576 </para>
1577 </listitem>
1578 </varlistentry>
1579
1580 <varlistentry>
1581 <term>/apps/gdm/simple-greeter/recent-languages</term>
1582 <listitem>
1583 <synopsis>[] (string list)</synopsis>
1584 <para>
1585 Set to a list of languages to be shown by default in the login
1586 window. Default value is "[]". With the default setting only
1587 the system default language is shown and the option "Other..."
1588 which pops-up a dialog box showing a full list of available
1589 languages which the user can select.
1590 </para>
1591
1592 <para>
1593 Users are not intended to change this setting by hand. Instead
1594 GDM keeps track of any languages selected in this configuration
1595 key, and will show them in the language combo box along with
1596 the "Other..." choice. This way, commonly selected languages
1597 are easier to select.
1598 </para>
1599 </listitem>
1600 </varlistentry>
1601
1602 <varlistentry>
1603 <term>/apps/gdm/simple-greeter/recent-layouts</term>
1604 <listitem>
1605 <synopsis>[] (string list)</synopsis>
1606 <para>
1607 Set to a list of keyboard layouts to be shown by default in the
1608 login panel. Default value is "[]". With the default setting
1609 only the system default keyboard layout is shown and the option
1610 "Other..." which pops-up a dialog box showing a full list of
1611 available keyboard layouts which the user can select.
1612 </para>
1613
1614 <para>
1615 Users are not intended to change this setting by hand. Instead
1616 GDM keeps track of any keyboard layouts selected in this
1617 configuration key, and will show them in the keyboard layout
1618 combo box along with the "Other..." choice. This way, commonly
1619 selected keyboard layouts are easier to select.
1620 </para>
1621 </listitem>
1622 </varlistentry>
1623
1624 <varlistentry>
1625 <term>/apps/gdm/simple-greeter/wm_use_compiz</term>
1626 <listitem>
1627 <synopsis>false (boolean)</synopsis>
1628 <para>
1629 Controls whether compiz is used as the window manager instead
1630 of metacity.
1631 </para>
1632 </listitem>
1633 </varlistentry>
1634 </variablelist>
1635 </sect2>
1636
1637 <sect2 id="accessibilityconfiguration">
1638 <title>Accessibility Configuration</title>
1639
1640 <para>
1641 This section describes the accessibility configuration options available
1642 in GDM.
1643 </para>
1644
1645 <sect3 id="accessibilitydialog">
1646 <title>GDM Accessibility Dialog And GConf Keys</title>
1647
1648 <para>
1649 The GDM greeter panel at the login screen displays an accessibility
1650 icon. Clicking on that icon opens the GDM Accessibility Dialog. In
1651 the GDM Accessibility Dialog, there is a list of checkboxes, so the
1652 user can enable or disable the associated assistive tools.
1653 </para>
1654
1655 <para>
1656 The checkboxes that correspond to the on-screen keyboard, screen
1657 magnifier and screen reader assistive tools act on the three GConf
1658 keys that are described in the next section of this document. By
1659 enabling or disabling these checkboxes, the associated GConf key is
1660 set to "true" or "false". When the GConf key is set to true, the
1661 assistive tools linked to this GConf key are launched. When the
1662 GConf key is set to "false", any running assistive tool linked to
1663 this GConf key are terminated. These GConf keys are not automatically
1664 reset to a default state after the user has logged in. Consequently,
1665 the assistive tools that were running during the last GDM login
1666 session will automatically be launched at the next GDM login session.
1667 </para>
1668
1669 <para>
1670 The other checkboxes in the GDM Accessibility Dialog do not have
1671 corresponding GConf keys because no additional program is launched to
1672 provide the accessibility features that they offer. These other
1673 options correspond to accessibility features that are provided by the
1674 Xserver, which is always running during the GDM session.
1675 </para>
1676 </sect3>
1677
1678 <sect3 id="accessibilitygconfconfiguration">
1679 <title>Accessibility GConf Keys</title>
1680
1681 <para>
1682 GDM offers the following GConf keys to control its accessibility
1683 features:
1684 </para>
1685
1686 <variablelist>
1687 <title>GDM Configuration Keys</title>
1688
1689 <varlistentry>
1690 <term>/desktop/gnome/interface/accessibility</term>
1691 <listitem>
1692 <synopsis>false (boolean)</synopsis>
1693 <para>
1694 Controls whether the Accessibility infrastructure will be
1695 started with the GDM GUI. This is needed for many
1696 accessibility technology programs to work.
1697 </para>
1698 </listitem>
1699 </varlistentry>
1700 <varlistentry>
1701 <term>/desktop/gnome/applications/at/screen_magnifier_enabled</term>
1702 <listitem>
1703 <synopsis>false (boolean)</synopsis>
1704 <para>
1705 If set, then the assistive tools linked to this GConf key will
1706 be started with the GDM GUI program. By default this is a
1707 screen magnifier application.
1708 </para>
1709 </listitem>
1710 </varlistentry>
1711 <varlistentry>
1712 <term>/desktop/gnome/applications/at/screen_keyboard_enabled</term>
1713 <listitem>
1714 <synopsis>false (boolean)</synopsis>
1715 <para>
1716 If set, then the assistive tools linked to this GConf key will
1717 be started with the GDM GUI program. By default this is an
1718 on-screen keyboard application.
1719 </para>
1720 </listitem>
1721 </varlistentry>
1722 <varlistentry>
1723 <term>/desktop/gnome/applications/at/screen_reader_enabled</term>
1724 <listitem>
1725 <synopsis>false (boolean)</synopsis>
1726 <para>
1727 If set, then the assistive tools linked to this GConf key will
1728 be started with the GDM GUI program. By default this is a
1729 screen reader application.
1730 </para>
1731 </listitem>
1732 </varlistentry>
1733 </variablelist>
1734 </sect3>
1735
1736 <sect3 id="accessibilitytoolsconfiguration">
1737 <title>Linking GConf Keys to Accessibility Tools</title>
1738
1739 <para>
1740 For the screen_magnifier_enabled, the screen_keyboard_enabled, and the
1741 screen_reader_enabled GConf keys, the assistive tool which gets
1742 launched depends on the desktop files located in the GDM autostart
1743 directory as described in the "Autostart Configuration" section of
1744 this manual. Any desktop file in the GDM autostart directory can be
1745 linked to these GConf key via specifying that GConf key in the
1746 AutostartCondition value in the desktop file. So the exact
1747 AutostartCondition line in the desktop file could be one of the
1748 following:
1749 </para>
1750
1751 <screen>
1752 AutostartCondition=GNOME /desktop/gnome/applications/at/screen_keyboard_enabled
1753 AutostartCondition=GNOME /desktop/gnome/applications/at/screen_magnifier_enabled
1754 AutostartCondition=GNOME /desktop/gnome/applications/at/screen_reader_enabled
1755 </screen>
1756
1757 <para>
1758 When an accessibility key is true, then any program which is linked to
1759 that key in a GDM autostart desktop file will be launched (unless the
1760 Hidden key is set to true in that desktop file). A single GConf key
1761 can even start multiple assistive tools if there are multiple desktop
1762 files with this AutostartCondition in the GDM autostart directory.
1763 </para>
1764 </sect3>
1765
1766 <sect3 id="accessibilitytoolexample">
1767 <title>Example Of Modifying Accessibility Tool Configuration</title>
1768
1769 <para>
1770 For example, if GNOME is distributed with GOK as the default on-screen
1771 keyboard, then this could be replaced with a different program if
1772 desired. To replace GOK with the on-screen keyboard application
1773 "onboard" and additionally activate the assistive tool "mousetweaks"
1774 for dwelling support, then the following configuration is needed.
1775 </para>
1776
1777 <para>
1778 Create a desktop file for onboard and a second one for mousetweaks;
1779 for example, onboard.desktop and mousetweaks.desktop. These files
1780 must be placed in the GDM autostart directory and be in the format
1781 as explained in the "Autostart Configuration" section of this
1782 document.
1783 </para>
1784
1785 <para>
1786 The following is an example <filename>onboard.desktop</filename> file:
1787 </para>
1788
1789 <screen>
1790 [Desktop Entry]
1791 Encoding=UTF-8
1792 Name=Onboard Onscreen Keyboard
1793 Comment=Use an on-screen keyboard
1794 TryExec=onboard
1795 Exec=onboard --size 500x180 -x 20 -y 10
1796 Terminal=false
1797 Type=Application
1798 StartupNotify=true
1799 Categories=GNOME;GTK;Accessibility;
1800 AutostartCondition=GNOME /desktop/gnome/applications/at/screen_keyboard_enabled
1801 </screen>
1802
1803 <para>
1804 The following is an example <filename>mousetweaks.desktop</filename>
1805 file:
1806 </para>
1807
1808 <screen>
1809 [Desktop Entry]
1810 Encoding=UTF-8
1811 Name=Software Mouse-Clicks
1812 Comment=Perform clicks by dwelling with the pointer
1813 TryExec=mousetweaks
1814 Exec=mousetweaks --enable-dwell -m window -c -x 20 -y 240
1815 Terminal=false
1816 Type=Application
1817 StartupNotify=true
1818 Categories=GNOME;GTK;Accessibility;
1819 AutostartCondition=GNOME /desktop/gnome/applications/at/screen_keyboard_enabled
1820 </screen>
1821
1822 <para>
1823 Note the line with the AutostartCondition that links both desktop
1824 files to the GConf key for the on-screen keyboard.
1825 </para>
1826
1827 <para>
1828 To disable GOK from starting, the desktop file for the GOK on-screen
1829 keyboard must be removed or deactivated. Otherwise onboard and GOK
1830 would simultaneously be started. This can be done by removing the
1831 gok.desktop file from the GDM autostart directory, or by adding the
1832 "Hidden=true" key setting to the gok.desktop file.
1833 </para>
1834
1835 <para>
1836 After making these changes, GOK will no longer be started when the
1837 user activates the on-screen keyboard in the GDM session; but onboard
1838 and mousetweaks will instead be launched.
1839 </para>
1840 </sect3>
1841 </sect2>
1842
1843 <sect2 id="generalsessionconfig">
1844 <title>General Session Settings</title>
1845 <!--
1846 <para>
1847 TODO - I think this section should be expanded upon. What specific
1848 keys are of interest, or would some users be likely to want
1849 to configure? Also, would be good to be more specific about
1850 how lock down management is handled.
1851 </para>
1852 -->
1853 <para>
1854 The GDM Greeter uses some of the same framework that your desktop
1855 session will use. And so, it is influenced by a number of the same
1856 GConf settings. For each of these settings the Greeter will use the
1857 default value unless it is specifically overridden by a) GDM's
1858 installed mandatory policy b) system mandatory policy. GDM installs
1859 its own mandatory policy to lock down some settings for security.
1860 </para>
1861 </sect2>
1862
1863 <sect2 id="gnomesettingsdaemon">
1864 <title>GNOME Settings Daemon</title>
1865 <!--
1866 <para>
1867 TODO - I think this section should be expanded upon. What specific
1868 keys are of interest, or would some users be likely to want
1869 to configure? Also, would be good to give a more complete
1870 list of plugins that users might want to consider disabling.
1871 Also, shouldn't we list the sound/active key in the Greeter
1872 configuration setting? Oddly I do not find this key used
1873 in anything but the chooser in SVN.
1874 </para>
1875 -->
1876
1877 <para>
1878 GDM enables the following gnome-settings-daemon plugins:
1879 a11y-keyboard, background, sound, xsettings.
1880 </para>
1881
1882 <para>
1883 These are responsible for things like the background image, font and
1884 theme settings, sound events, etc.
1885 </para>
1886
1887 <para>
1888 Plugins can also be disabled using GConf. For example, if you want to
1889 disable the sound plugin then unset the following key:
1890 <filename>/apps/gdm/simple-greeter/settings-manager-plugins/sound/active</filename>.
1891 </para>
1892 </sect2>
1893
1894 <sect2 id="sessionconfig">
1895 <title>GDM Session Configuration</title>
1896
1897 <para>
1898 GDM sessions are specified using the FreeDesktop.org Desktop Entry
1899 Specification, which can be referenced at the following URL:
1900 <ulink url="https://www.freedesktop.org/wiki/Specifications/desktop-entry-spec/">
1901 https://www.freedesktop.org/wiki/Specifications/desktop-entry-spec</ulink>.
1902 </para>
1903
1904 <para>
1905 By default, GDM will install desktop files in the
1906 <filename>&lt;share&gt;/xsessions</filename> directory. GDM will
1907 search the following directories in this order to find desktop files:
1908 <filename>&lt;etc&gt;/X11/sessions/</filename>,
1909 <filename>&lt;dmconfdir&gt;/Sessions</filename>,
1910 <filename>&lt;share&gt;/gdm/BuiltInSessions</filename>, and
1911 <filename>&lt;share&gt;/xsessions</filename>. By default the
1912 <filename>&lt;dmconfdir&gt;</filename> is set to
1913 <filename>&lt;etc&gt;/dm/</filename> unless GDM is configured to use
1914 a different directory via the "--with-dmconfdir" option.
1915 </para>
1916
1917 <para>
1918 A session can be disabled by editing the desktop file and adding a line
1919 as follows: <filename>Hidden=true</filename>.
1920 </para>
1921
1922 <para>
1923 GDM desktop files support a GDM-specific extension, a key named
1924 &quot;X-GDM-BypassXsession&quot;. If the key is not specified in a
1925 desktop file, the value defaults to &quot;false&quot;. If this key is
1926 specified to be &quot;true&quot; in a desktop file, then GDM will
1927 launch the program specified by the desktop file &quot;Exec&quot; key
1928 directly when starting the user session. It will not run the program
1929 via the <filename>&lt;etc&gt;/gdm/Xsession</filename> script, which is
1930 the normal behavior. Since bypassing the
1931 <filename>&lt;etc&gt;/gdm/Xsession</filename> script avoids setting up
1932 the user session with the normal system and user settings, sessions
1933 started this way can be useful for debugging problems in the system or
1934 user scripts that might be preventing a user from being able to start
1935 a session.
1936 </para>
1937
1938 </sect2>
1939
1940 <sect2 id="userconfig">
1941 <title>GDM User Session and Language Configuration</title>
1942 <para>
1943 The user's default session and language choices are stored in the
1944 <filename>~/.dmrc</filename> file. When a user logs in for the first
1945 time, this file is created with the user's initial choices. The user
1946 can change these default values by simply changing to a different value
1947 when logging in. GDM will remember this change for subsequent logins.
1948 </para>
1949
1950 <para>
1951 The <filename>~/.dmrc</filename> file is in the standard
1952 <filename>INI</filename> format. It has one section called
1953 <filename>[Desktop]</filename> which has two keys:
1954 <filename>Session</filename> and <filename>Language</filename>.
1955 </para>
1956
1957 <para>
1958 The <filename>Session</filename> key specifies the basename of the
1959 session <filename>.desktop</filename> file that the user wishes to
1960 normally use without the <filename>.desktop</filename> extension.
1961 The <filename>Language</filename> key specifies the language that the
1962 user wishes to use by default. If either of these keys is missing, the
1963 system default is used. The file would normally look as follows:
1964 </para>
1965
1966 <screen>
1967 [Desktop]
1968 Session=gnome
1969 Language=cs_CZ.UTF-8
1970 </screen>
1971 </sect2>
1972
1973 </sect1>
1974
1975 <!-- ============= GDM Commands ============================= -->
1976
1977 <sect1 id="binaries">
1978 <title>GDM Commands</title>
1979
1980 <sect2 id="sbindir_binaries">
1981 <title>GDM Root User Commands</title>
1982
1983 <para>
1984 The GDM package provides the following commands in
1985 <filename>sbindir</filename> intended to be run by the root user:
1986 </para>
1987
1988 <sect3 id="gdmcommandline">
1989 <title><command>gdm</command> Command Line Options</title>
1990
1991 <para>
1992 <command>gdm</command> is the main daemon which sets up
1993 graphical login environment and starts necessary helpers.
1994 </para>
1995
1996 <variablelist>
1997 <title><command>gdm</command> Command Line Options</title>
1998
1999 <varlistentry>
2000 <term>-?, --help</term>
2001 <listitem>
2002 <para>
2003 Gives a brief overview of the command line options.
2004 </para>
2005 </listitem>
2006 </varlistentry>
2007
2008 <varlistentry>
2009 <term>--fatal-warnings</term>
2010 <listitem>
2011 <para>
2012 Make all warnings cause GDM to exit.
2013 </para>
2014 </listitem>
2015 </varlistentry>
2016
2017 <varlistentry>
2018 <term>--timed-exit</term>
2019 <listitem>
2020 <para>
2021 Exit after 30 seconds. Useful for debugging.
2022 </para>
2023 </listitem>
2024 </varlistentry>
2025
2026 <varlistentry>
2027 <term>--version</term>
2028 <listitem>
2029 <para>
2030 Print the version of the GDM daemon.
2031 </para>
2032 </listitem>
2033 </varlistentry>
2034 </variablelist>
2035 </sect3>
2036
2037 <sect3 id="gdmrestartcommandline">
2038 <title><command>gdm-restart</command> Command Line Options</title>
2039
2040 <para>
2041 <command>gdm-restart</command> stops and restarts GDM by sending
2042 the GDM daemon a HUP signal. This command will immediately terminate
2043 all sessions and log out users currently logged in with GDM.
2044 </para>
2045 </sect3>
2046
2047 <sect3 id="gdmsaferestartcommandline">
2048 <title><command>gdm-safe-restart</command> Command Line Options</title>
2049
2050 <para>
2051 <command>gdm-safe-restart</command> stops and restarts GDM by
2052 sending the GDM daemon a USR1 signal. GDM will be restarted as soon
2053 as all users log out.
2054 </para>
2055 </sect3>
2056
2057 <sect3 id="gdmstopcommandline">
2058 <title><command>gdm-stop</command> Command Line Options</title>
2059
2060 <para>
2061 <command>gdm-stop</command> stops GDM by sending the GDM daemon
2062 a TERM signal.
2063 </para>
2064 </sect3>
2065 </sect2>
2066 </sect1>
2067
2068 <!-- ============= Troubleshooting =========================== -->
2069
2070 <sect1 id="troubleshooting">
2071 <title>Troubleshooting</title>
2072 <!--
2073 <para>
2074 TODO - any other tips we should add? Might be useful to highlight any
2075 common D-Bus configuration issues?
2076 </para>
2077 -->
2078
2079 <para>
2080 This section discusses helpful tips for getting GDM working. In general,
2081 if you have a problem using GDM, you can submit a bug or send an email
2082 to the gdm-list mailing list. Information about how to do this is in
2083 the Introduction section of the document.
2084 </para>
2085
2086 <para>
2087 If GDM is failing to work properly, it is always a good idea to include
2088 debug information. To enable debugging, set the debug/Enable key to
2089 &quot;true&quot; in the <filename>&lt;etc&gt;/gdm/custom.conf</filename>
2090 file and restart GDM. Then use GDM to the point where it fails, and
2091 debug output will be sent to the system log file
2092 (<filename>&lt;var&gt;/log/messages</filename> or
2093 <filename>&lt;var&gt;/adm/messages</filename> depending on your Operating
2094 System). If you share this output with the GDM community via a bug
2095 report or email, please only include the GDM related debug information
2096 and not the entire file since it can be large. If you do not see any
2097 GDM syslog output, you may need to configure syslog (refer to the
2098 <ulink type="help" url="man:syslog">syslog</ulink> man page).
2099 </para>
2100
2101 <sect2 id="wontstart">
2102 <title>GDM Will Not Start</title>
2103
2104 <para>
2105 There are a many problems that can cause GDM to fail to start, but
2106 this section will discuss a few common problems and how to approach
2107 tracking down a problem with GDM starting. Some problems will
2108 cause GDM to respond with an error message or dialog when it tries
2109 to start, but it can be difficult to track down problems when GDM
2110 fails silently.
2111 </para>
2112
2113 <para>
2114 First make sure that the Xserver is configured properly. The
2115 GDM configuration file contains a command in the [server-Standard]
2116 section that is used for starting the Xserver. Verify that this
2117 command works on your system. Running this command from the
2118 console should start the Xserver. If it fails, then the problem
2119 is likely with your Xserver configuration. Refer to your Xserver
2120 error log for an idea of what the problem may be. The problem may
2121 also be that your Xserver requires different command-line options.
2122 If so, then modify the Xserver command in the GDM configuration file
2123 so that it is correct for your system.
2124 </para>
2125
2126 <para>
2127 Also make sure that the <filename>/tmp</filename> directory has
2128 reasonable ownership and permissions, and that the machine's file
2129 system is not full. These problems will cause GDM to fail to start.
2130 </para>
2131 </sect2>
2132 </sect1>
2133
2134 <!-- ============= Application License ============================= -->
2135
2136 <sect1 id="license">
2137 <title>License</title>
2138 <para>
2139 This program is free software; you can redistribute it and/or
2140 modify it under the terms of the <ulink type="help" url="gnome-help:gpl">
2141 <citetitle>GNU General Public License</citetitle></ulink> as
2142 published by the Free Software Foundation;
2143 either version 2 of the License, or (at your option) any later
2144 version.
2145 </para>
2146 <para>
2147 This program is distributed in the hope that it will be useful, but
2148 WITHOUT ANY WARRANTY; without even the implied warranty of
2149 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2150 <citetitle>GNU General Public License</citetitle> for more details.
2151 </para>
2152 <para>
2153 A copy of the <citetitle>GNU General Public License</citetitle> is
2154 included as an appendix to the <citetitle>GNOME Users
2155 Guide</citetitle>. You may also obtain a copy of the
2156 <citetitle>GNU General Public License</citetitle> from the Free
2157 Software Foundation by visiting
2158 <ulink type="http" url="https://www.fsf.org/">their Web site</ulink> or by
2159 writing to
2160 <address>
2161 Free Software Foundation, Inc.
2162 <street>51 Franklin Street, Fifth Floor</street>
2163 <city>Boston</city>, <state>MA</state> <postcode>02110-1301</postcode>
2164 <country>USA</country>
2165 </address>
2166 </para>
2167 </sect1>
2168 </article>
2169
2170 <!-- Keep this comment at the end of the file
2171 Local variables:
2172 mode: sgml
2173 sgml-omittag:t
2174 sgml-shorttag:t
2175 sgml-minimize-attributes:nil
2176 sgml-always-quote-attributes:t
2177 sgml-indent-step:2
2178 sgml-indent-data:t
2179 sgml-parent-document:nil
2180 sgml-exposed-tags:nil
2181 sgml-local-catalogs:nil
2182 sgml-local-ecat-files:nil
2183 End:
2184 -->