1 | .\" $Id: dm.8,v 1.8 1999-01-22 23:16:12 ghudson Exp $ |
---|
2 | .TH DM 8 "30 April 1994" |
---|
3 | .ds ]W MIT Project Athena |
---|
4 | .SH NAME |
---|
5 | dm \- X display manager |
---|
6 | .SH SYNOPSIS |
---|
7 | dm \fIconfigfile logintty\fR [-noconsole] \fIconsoletty\fR |
---|
8 | .SH DESCRIPTION |
---|
9 | |
---|
10 | \fIDm\fR is intended to be run by \fIinit\fR to startup the X server, |
---|
11 | the X console, and X login. It will read out of the specified config |
---|
12 | file the command lines for these three processes. |
---|
13 | .PP |
---|
14 | This file consists of lines containing the program name, whitespace, |
---|
15 | and the commandline for the program. The program names recognized are |
---|
16 | \fBdm\fB, \fBX\fR, \fBconsole\fR, and \fBlogin\fR. Everything from a |
---|
17 | hash mark to the end-of-line will be ignored as a comment. \fIDm\fR |
---|
18 | recognizes one command line option from this file, -display. If it |
---|
19 | is not specified, \fIdm\fR will default to :0. |
---|
20 | .PP |
---|
21 | The X server will be started first, using the SIGUSR1 handshake |
---|
22 | present in X11R4. For security reasons, \fIdm\fR will then |
---|
23 | immediately open the X display and remove all hosts from the server's |
---|
24 | access control list, unless the file /etc/X*.hosts exists and has |
---|
25 | nonzero length (* represents the display number). This serves to |
---|
26 | prevent any possible connections from other than the Unix domain socket. |
---|
27 | \fIDm\fR will keep this connection open to prevent the X server from |
---|
28 | inadvertently resetting should the user at some point have closed all |
---|
29 | X connections temporarily. Next the console will be started, reading |
---|
30 | from the master side of the pseudo-tty specified as the |
---|
31 | \fIlogintty\fR. If \fIlogintty\fR is already in use, another |
---|
32 | pseudo-tty will be chosen. Then the login will be started, with stdin |
---|
33 | set to \fI/dev/null\fR and stdout and stderr set to \fIlogintty\fR. |
---|
34 | The display manager then waits for a change in the status of its |
---|
35 | children or a signal to arrive. If the display manager encounters |
---|
36 | errors while starting up, it will initiate a console login. |
---|
37 | .PP |
---|
38 | If the console exits, another one will be started. If the X server or |
---|
39 | xlogin exit, the display manager will clean up and exit. This |
---|
40 | includes a call to \fIal_acct_revert(3)\fR to clean up the user's login |
---|
41 | session if necessary. If xlogin exits with status 2, it is requesting |
---|
42 | that a raw console login be started. If the display manager receives |
---|
43 | SIGFPE, it will kill its children and sleep forever (this is a way to |
---|
44 | shutdown the display during updates). |
---|
45 | .PP |
---|
46 | If the \fB-noconsole\fR switch is given, it will not do the special |
---|
47 | console handling. This is necessary if more than one display manager |
---|
48 | is running on a machine. |
---|
49 | .SH FILES |
---|
50 | /etc/utmp, /usr/adm/wtmp, /etc/passwd, /etc/ptmp, /etc/X*.hosts, |
---|
51 | /var/athena/X*.pid, /var/athena/console.pid, /var/athena/dm.pid, /dev/mouse, |
---|
52 | /dev/cons, /var/athena/console.log, /dev/console |
---|
53 | |
---|
54 | .SH "SEE ALSO" |
---|
55 | Xserver(1), console(8), xlogin(8), config_console(1), init(8), |
---|
56 | al_acct_revert(3) |
---|
57 | |
---|
58 | .SH AUTHOR |
---|
59 | Mark Rosenstein, MIT Project Athena |
---|
60 | .br |
---|
61 | Copyright (c) 1990 Massachusetts Institute of Technology |
---|
62 | |
---|
63 | .SH BUGS |
---|
64 | Sometimes the console does not revert back to the real console when a |
---|
65 | console login is requested. |
---|
66 | |
---|
67 | Sometimes it is necessary to press SHIFT, CONTROL, and/or META before |
---|
68 | keys work normally when a console login is requested. |
---|