wdm(1x)
π wdm(1x): WINGs Display Manager π
πΈ NAME πΈ
okay bestie, wdm is the WINGs Display Manager. That's the whole vibe. Periodt.
β¨ SYNOPSIS β¨
wdm [ options ]
π¦ DESCRIPTION π¦
wdm is an X display manager based on the original X11 X Display Manager (xdm). It features numerous functionality improvements, including the ability to reboot or halt the machine (once the proper password has been supplied) and to select from a list of available X sessions to start. The look of the login panel is somewhat configurable, too.
π OPTIONS π
Except for -config, all of these options can be specified as resources. No cap.
-configconfiguration_file β Names the configuration file, which specifies resources to control the behavior ofwdm.#configdir#/wdm-configis the default.-nodaemonβ Specifiesfalseas the value for theDisplayManager.daemonModeresource. This suppresses the normal daemon behavior, which is forwdmto close all file descriptors, disassociate itself from the controlling terminal, and put itself in the background when it first starts up.-debugdebug_level β Specifies the numeric value for theDisplayManager.debugLevelresource. A non-zero value causeswdmto print lots of debugging statements to the terminal; it also disables theDisplayManager.daemonModeresource, forcingwdmto run synchronously. To interpret these debugging messages, a copy of the source code forwdmis almost a necessity. No attempt has been made to rationalize or standardize the output.-errorerror_log_file β Specifies the value for theDisplayManager.errorLogFileresource. This file contains errors fromwdmas well as anything written tostderrby the various scripts and programs run during the progress of the session.-syslogfacility β Specifies the value for theDisplayManager.syslogFacilityresource. This is the facility to use with all messages if log is redirected to syslog.-usesyslogβ Specifiestrueas the value for theDisplayManager.useSyslogresource. This will force all messages go to syslog with facility specified byDisplayManager.syslogFacilityresource.-useerrfileβ Specifiesfalseas the value for theDisplayManager.useSyslogresource. This will force all messages go to log file specified byDisplayManager.errorLogFileresource.-resourcesresource_file β Specifies the value for theDisplayManager*resourcesresource. This file is loaded usingxrdbto specify configuration parameters for the authentication widget.-serverserver_entry β Specifies the value for theDisplayManager.serversresource.-udpPortport_number β Specifies the value for theDisplayManager.requestPortresource. This sets the port-number whichwdmwill monitor for XDMCP requests. As XDMCP uses the registered well-known UDP port 177, this resource should not be changed except for debugging. If set to 0wdmwill not listen for XDMCP or Chooser requests.-sessionsession_program β Specifies the value for theDisplayManager*sessionresource. This indicates the program to run as the session after the user has logged in.-xrmresource_specification β Allows an arbitrary resource to be specified, as in most X Toolkit applications.
π RESOURCES π
At many stages the actions of wdm can be controlled through the use of its configuration file, which is in the X resource format. Some resources modify the behavior of wdm on all displays, while others modify its behavior on a single display. Where actions relate to a specific display, the display name is inserted into the resource name between DisplayManager and the final resource name segment.
For local displays, the resource name and class are as read from the Xservers file.
For remote displays, the resource name is what the network address of the display resolves to. See the removeDomain resource. The name must match exactly; wdm is not aware of all the network aliases that might reach a given display. If the name resolve fails, the address is used. The resource class is as sent by the display in the XDMCP Manage request.
Because the resource manager uses colons to separate the name of the resource from its value and dots to separate resource name parts, wdm substitutes underscores for both dots and colons when generating the resource name. For example, DisplayManager.expo_x_org_0.startup is the name of the resource which defines the startup shell file for the expo.x.org:0 display.
DisplayManager.serversβ This resource either specifies a file name full of server entries, one per line (if the value starts with a slash), or a single server entry. See the section Local Server Specification for the details.DisplayManager.requestPortβ This indicates the UDP port number whichwdmuses to listen for incoming XDMCP requests. Unless you need to debug the system, leave this with its default value of 177.DisplayManager.errorLogFileβ Error output is normally directed at the system console. To redirect it, set this resource to a file name. A method to send these messages to syslog should be developed for systems which support it; however, the wide variety of interfaces precludes any system-independent implementation. This file also contains any output directed tostderrby theXsetup,Xstartup,XsessionandXresetfiles, so it will contain descriptions of problems in those scripts as well.DisplayManager.debugLevelβ If the integer value of this resource is greater than zero, reams of debugging information will be printed. It also disables daemon mode, which would redirect the information into the bit-bucket, and allows non-root users to runwdm, which would normally not be useful.DisplayManager.daemonModeβ Normally,wdmattempts to make itself into a daemon process unassociated with any terminal. This is accomplished by forking and leaving the parent process to exit, then closing file descriptors and releasing the controlling terminal. In some environments this is not desired (in particular, when debugging). Setting this resource tofalsewill disable this feature.DisplayManager.pidFileβ The filename specified will be created to contain an ASCII representation of the process-id of the mainwdmprocess.Xdmalso uses file locking on this file to attempt to eliminate multiple daemons running on the same machine, which would cause quite a bit of havoc.DisplayManager.lockPidFileβ This is the resource which controls whetherwdmuses file locking to keep multiple display managers from running amok. On System V, this uses thelockflibrary call, while on BSD it usesflock.DisplayManager.authDirβ This names a directory under whichwdmstores authorization files while initializing the session. The default value is#configdir#. Can be overridden for specific displays byDisplayManager.DISPLAY.authFile.DisplayManager.autoRescanβ This boolean controls whetherwdmrescans the configuration, servers, access control and authentication keys files after a session terminates and the files have changed. By default it istrue. You can forcewdmto reread these files by sending aSIGHUPto the main process.DisplayManager.removeDomainnameβ When computing the display name for XDMCP clients, the name resolver will typically create a fully qualified host name for the terminal. As this is sometimes confusing,wdmwill remove the domain name portion of the host name if it is the same as the domain name of the local host when this variable is set. By default the value istrue.DisplayManager.keyFileβ XDM-AUTHENTICATION-1 style XDMCP authentication requires that a private key be shared betweenwdmand the terminal. This resource specifies the file containing those values. Each entry in the file consists of a display name and the shared key. By default,wdmdoes not include support for XDM-AUTHENTICATION-1, as it requires DES which is not generally distributable because of United States export restrictions.DisplayManager.accessFileβ To prevent unauthorized XDMCP service and to allow forwarding of XDMCP IndirectQuery requests, this file contains a database of hostnames which are either allowed direct access to this machine, or have a list of hosts to which queries should be forwarded to. The format of this file is described in the section XDMCP Access Control.DisplayManager.exportListβ A list of additional environment variables, separated by white space, to pass on to theXsetup,Xstartup,Xsession, andXresetprograms.DisplayManager.randomFileβ A file to checksum to generate the seed of authorization keys. This should be a file that changes frequently. The default is/dev/urandom.DisplayManager.greeterLibβ On systems that support a dynamically-loadable greeter library, the name of the library. The default is/usr/lib/X11/xdm/libXdmGreet.so. This is not used in Debian.DisplayManager.choiceTimeoutβ Number of seconds to wait for display to respond after user has selected a host from the chooser. If the display sends an XDMCP IndirectQuery within this time, the request is forwarded to the chosen host. Otherwise, it is assumed to be from a new session and the chooser is offered again. Default is 15.DisplayManager.sourceAddressβ Use the numeric IP address of the incoming connection on multihomed hosts instead of the host name. This is to avoid trying to connect on the wrong interface which might be down at this time.DisplayManager.willingβ This specifies a program which is run (as) root when an XDMCP BroadcastQuery is received and this host is configured to offer XDMCP display management. The output of this program may be displayed on a chooser window. If no program is specified, the stringWilling to manageis sent.
πΈ DisplayManager.DISPLAY.resources
okay so this one is the name of the file that xrdb loads as the resource database onto the root window of screen 0 of the display. The Xsetup program, the Login widget, and chooser are all gonna use the resources set in this file. It gets loaded just before the authentication procedure starts, which is the whole point β that's how it controls the appearance of the login window. Peep the Authentication Widget section for the deets on which resources are appropriate to put in here. There's no default value for this resource, but #configdir#/Xresources is the conventional name. π
π¦ DisplayManager.DISPLAY.chooser
This specifies the program that gets run to offer a host menu for Indirect queries redirected to the special host name CHOOSER. Default is /usr/lib/X11/xdm/chooser. Go read the XDMCP Access Control and Chooser sections for the lore. β¨
π DisplayManager.DISPLAY.xrdb
Specifies the program used to load the resources. By default, wdm uses /usr/bin/xrdb. that's it, that's the resource π
π§ DisplayManager.DISPLAY.cpp
This specifies the name of the C preprocessor which is used by xrdb.
πΈ DisplayManager.DISPLAY.setup
This specifies a program which is run (as root) before offering the Login window. Bestie you can use this to change the appearance of the screen around the Login window, or to put up other windows (like, say, you might wanna run xconsole here). By default, no program is run. The conventional name for a file used here is Xsetup. See the Setup Program section. π«Ά
β DisplayManager.DISPLAY.startup
This specifies a program which is run (as root) after the authentication process succeeds. By default, no program is run. The conventional name for a file used here is Xstartup. See the Startup Program section. π
π DisplayManager.DISPLAY.session
This specifies the session to be executed (not running as root, bestie, we're being responsible). By default, /usr/bin/x-terminal-emulator is run. The conventional name is Xsession. See the Session Program section. β¨
π DisplayManager.DISPLAY.reset
This specifies a program which is run (as root) after the session terminates. By default, no program is run. The conventional name is Xreset. See the Reset Program section. π
β³ DisplayManager.DISPLAY.openDelay Β· DisplayManager.DISPLAY.openRepeat Β· DisplayManager.DISPLAY.openTimeout Β· DisplayManager.DISPLAY.startAttempts
okay these four are the numeric resources that control how wdm behaves when it's out here trying to open intransigent servers (servers that are lowkey not cooperating π):
openDelayis the length of the pause (in seconds) between successive attemptsopenRepeatis the number of attempts to makeopenTimeoutis the amount of time to wait while actually attempting the open β i.e. the maximum time spent in theconnect(2)system callstartAttemptsis the number of times this entire process is done before giving up on the server
So here's the drama: after openRepeat attempts have been made, or if openTimeout seconds elapse in any particular attempt, wdm terminates and restarts the server, attempting to connect again. This whole process is repeated startAttempts times, at which point the display is declared dead and disabled π. And like, yeah, this behavior may seem arbitrary, but it has been empirically developed and works quite well on most systems, fr fr. The default values are 5 for openDelay, 5 for openRepeat, 30 for openTimeout and 4 for startAttempts.
π‘ DisplayManager.DISPLAY.pingInterval Β· DisplayManager.DISPLAY.pingTimeout
To discover when remote displays disappear, wdm occasionally pings them, using an X connection and XSync calls. pingInterval specifies the time (in minutes) between each ping attempt, and pingTimeout specifies the maximum amount of time (in minutes) to wait for the terminal to respond to the request. If the terminal does not respond, the session is declared dead and terminated. π
By default, both are set to 5 minutes. If you frequently use X terminals which can become isolated from the managing host, you may wish to increase this value. The only worry is that sessions will continue to exist after the terminal has been accidentally disabled. Also β wdm will not ping local displays. And even though it would seem harmless, it is unpleasant when the workstation session is terminated as a result of the server hanging for NFS service and not responding to the ping. so yeah. noted. π
π DisplayManager.DISPLAY.terminateServer
This boolean resource specifies whether the X server should be terminated when a session terminates (instead of resetting it). This option can be used when the server tends to grow without bound over time, in order to limit the amount of time the server is run. The default value is false. periodt.
π£οΈ DisplayManager.DISPLAY.userPath
Xdm sets the PATH environment variable for the session to this value. It should be a colon separated list of directories; see sh(1) for a full description. :/bin:/usr/bin:/usr/games is a common setting. The default value can be specified at build time in the X system configuration file with DefaultUserPath. β¨
π£οΈ DisplayManager.DISPLAY.systemPath
Xdm sets the PATH environment variable for the startup and reset scripts to the value of this resource. The default for this resource is specified at build time by the DefaultSystemPath entry in the system configuration file; /etc:/bin:/usr/bin is a common choice.
Note the absence of . from this entry. This is a good practice to follow for root; it avoids many common Trojan Horse system penetration schemes. bestie do NOT put a dot in there. i'm so serious. π¨
π DisplayManager.DISPLAY.systemShell
Xdm sets the SHELL environment variable for the startup and reset scripts to the value of this resource. It is /bin/sh by default.
π DisplayManager.DISPLAY.failsafeClient
If the default session fails to execute, wdm will fall back to this program. This program is executed with no arguments, but executes using the same environment variables as the session would have had (see the Session Program section). By default, /usr/bin/x-terminal-emulator is used. the safety net, the understudy, the backup dancer π
π DisplayManager.DISPLAY.grabServer Β· DisplayManager.DISPLAY.grabTimeout
To improve security, wdm grabs the server and keyboard while reading the login name and password. The grabServer resource specifies if the server should be held for the duration of the name/password reading. When false, the server is ungrabbed after the keyboard grab succeeds, otherwise the server is grabbed until just before the session begins. The default is false.
The grabTimeout resource specifies the maximum time wdm will wait for the grab to succeed. The grab may fail if some other client has the server grabbed, or possibly if the network latencies are very high. This resource has a default value of 3 seconds; you should be cautious when raising it, as a user can be spoofed by a look-alike window on the display. π± If the grab fails, wdm kills and restarts the server (if possible) and the session.
ποΈ DisplayManager.DISPLAY.authorize Β· DisplayManager.DISPLAY.authName
authorize is a boolean resource which controls whether wdm generates and uses authorization for the local server connections. If authorization is used, authName is a list of authorization mechanisms to use, separated by white space. XDMCP connections dynamically specify which authorization mechanisms are supported, so authName is ignored in this case. When authorize is set for a display and authorization is not available, the user is informed by having a different message displayed in the login widget.
By default, authorize is true. authName is MIT-MAGIC-COOKIE-1, or, if XDM-AUTHORIZATION-1 is available, XDM-AUTHORIZATION-1 MIT-MAGIC-COOKIE-1. iconic behavior honestly π
π DisplayManager.DISPLAY.authFile
This file is used to communicate the authorization data from wdm to the server, using the -auth server command line option. It should be kept in a directory which is not world-writable, as it could easily be removed, disabling the authorization mechanism in the server. π If not specified, a name is generated from DisplayManager.authDir and the name of the display.
π’ DisplayManager.DISPLAY.authComplain
If set to false, disables the use of the unsecureGreeting in the login window. See the Authentication Widget section. The default is true.
π DisplayManager.DISPLAY.resetSignal
The number of the signal wdm sends to reset the server. See the Controlling the Server section. The default is 1 (SIGHUP).
π DisplayManager.DISPLAY.termSignal
The number of the signal wdm sends to terminate the server. See the Controlling the Server section. The default is 15 (SIGTERM).
π°οΈ DisplayManager.DISPLAY.resetForAuth
okay so this is a whole throwback situation. The original implementation of authorization in the sample server reread the authorization file at server reset time, instead of when checking the initial connection. Since wdm generates the authorization information just before connecting to the display, an old server would not get up-to-date authorization information. π¬
This resource causes wdm to send SIGHUP to the server after setting up the file, causing an additional server reset to occur, during which time the new authorization information will be read. The default is false, which will work for all MIT servers. β¨
ποΈ DisplayManager.DISPLAY.userAuthDir
When wdm is unable to write to the usual user authorization file ($HOME/.Xauthority), it creates a unique file name in this directory and points the environment variable XAUTHORITY at the created file. It uses /tmp by default.
π DisplayManager.wdmLogin
Specifies the path to wdmLogin(1x). π«Ά
πͺ DisplayManager.wdmWm
Is a colon separated list of window managers to use as options in the login panel. Note that if you include the path to the window manager, it will look ugly. π You may set this resource to None if you want only NoChange to appear.
πΌοΈ DisplayManager.wdmLogo
Path to the logo pixmap, several formats are accepted, read wdmLogin(1x) to find out more. β¨
DisplayManager.wdmHelpFileβ path to a text file, and that file gets displayed in the help panel. Wanna know more? Go readwdmLogin(1x), bestie. πDisplayManager.wdmDefaultUserβ a default username. It gets used if nobody bothers to type one in.DisplayManager.wdmDefaultPasswdβ the clear text password of that default user above. π
BE VERY CAREFUL when using these two resources, okay?? And do not forget to run:
chmod 600 wdm-config ; chown root.root wdm-config
DisplayManager.wdmBgβ background specification. Go read the BACKGROUND IMAGE SPECIFICATION section to find out about the format. If you don't specify this, then the background is justβ¦ not set. Tragic but true. πDisplayManager.wdmRebootβ the reboot command.DisplayManager.wdmHaltβ the halt command.DisplayManager.wdmVerifyβ if true, verify the user's identity for reboot/halt/exit.DisplayManager.wdmRootβ if true, the user must be root to exit.DisplayManager.wdmAnimationsβ if true, enable animations consisting of shaking the panel (if there's an error) and rolling up the panel (when closing it). If false, animations are disabled.DisplayManager.wdmLocaleβ theLANGenvironment variable will be set to the value of this resource before startingwdmLogin.DisplayManger.wdmCursorThemeβ if you have a recent version of XFree with support for transparent cursors, you can select the cursor theme to use on the login panel. TheXCURSOR_THEMEenvironment variable will be set to the value of this resource before startingwdmLogin.
π CONFIGURATION FILE π
The default location of the wdm configuration file is #configdir#/wdm-config.
Here is a reasonable configuration file, which could be named wdm-config:
DisplayManager.servers: /usr/lib/X11/xdm/Xservers
DisplayManager.errorLogFile: /usr/lib/X11/xdm/xdm-errors
DisplayManager*resources: /usr/lib/X11/xdm/Xresources
DisplayManager*startup: /usr/lib/X11/xdm/Xstartup
DisplayManager*session: /usr/lib/X11/xdm/Xsession
DisplayManager.pidFile: /usr/lib/X11/xdm/xdm-pid
DisplayManager._0.authorize: true
DisplayManager*authorize: false
Okay so lowkey, this file mostly just contains references to other files. π Also note that some of the resources are specified with * separating the components. Those resources can be made unique for each different display by replacing the * with the display-name, but normally that's not very useful. Go check the Resources section for the complete discussion. If the entry is a host name, all comparisons are done using network addresses, so any name which converts to the correct network address may be used. For patterns, only canonical host names are used in the comparison, so make sure you do not attempt to match aliases. And preceding either a host name or a pattern with a ! character causes hosts which match that entry to be excluded. π
To only respond to Direct queries for a host or pattern, it can be followed by the optional NOBROADCAST keyword. This can be used to prevent a wdm server from appearing on menus based on Broadcast queries.
An Indirect entry also contains a host name or pattern, but follows it with a list of host names or macros to which indirect queries should be sent.
A macro definition contains a macro name and a list of host names and other macros that the macro expands to. To distinguish macros from hostnames, macro names start with a % character. Macros may be nested. πͺ
Indirect entries may also specify to have wdm run chooser to offer a menu of hosts to connect to. See the section Chooser.
When checking access for a particular display host, each entry is scanned in turn and the first matching entry determines the response. Direct and Broadcast entries are ignored when scanning for an Indirect entry and vice-versa.
Blank lines are ignored, # is treated as a comment delimiter causing the rest of that line to be ignored, and \newline causes the newline to be ignored, allowing indirect host lists to span multiple lines. So you can be a little messy, bestie. πΈ
Here is an example Xaccess file:
#
# Xaccess - XDMCP access control file
#
#
# Direct/Broadcast query entries
#
!xtra.lcs.mit.edu # disallow direct/broadcast service for xtra
bambi.ogi.edu # allow access from this particular display
*.lcs.mit.edu # allow access from any display in LCS
*.deshaw.com NOBROADCAST # allow only direct access
*.gw.com # allow direct and broadcast
#
# Indirect query entries
#
%HOSTS expo.lcs.mit.edu xenon.lcs.mit.edu \
excess.lcs.mit.edu kanga.lcs.mit.edu
extract.lcs.mit.edu xenon.lcs.mit.edu #force extract to contact xenon
!xtra.lcs.mit.edu dummy #disallow indirect access
*.lcs.mit.edu %HOSTS #all others get to choose
π RESOURCES FILE π
The Xresources file is loaded onto the display as a resource database using xrdb. Since the authentication widget reads this database before starting up, it usually contains parameters for that widget:
xlogin*login.translations: #override\
Ctrl<Key>R: abort-display()\n\
<Key>F1: set-session-argument(failsafe) finish-field()\n\
<Key>Return: set-session-argument() finish-field()
xlogin*borderWidth: 3
xlogin*greeting: CLIENTHOST
#ifdef COLOR
xlogin*greetColor: CadetBlue
xlogin*failColor: red
#endif
Please note the translations entry, bestie β it specifies a few new translations for the widget which allow users to escape from the default session (and avoid troubles that may occur in it). Note that if #override is not specified, the default translations are removed and replaced by the new value, which is not a very useful result, since some of the default translations are quite useful (such as <Key>: insert-char () which responds to normal typing). π¬
This file may also contain resources for the setup program and chooser.
β¨ SETUP PROGRAM β¨
The Xsetup file is run after the server is reset, but before the Login window is offered. The file is typically a shell script. It is run as root, so be careful about security, okay?? This is the place to change the root background or bring up other windows that should appear on the screen along with the Login widget. π«Ά
In addition to any specified by DisplayManager.exportList, the following environment variables are passed:
DISPLAYβ the associated display namePATHβ the value ofDisplayManager.DISPLAY.systemPathSHELLβ the value ofDisplayManager.DISPLAY.systemShellXAUTHORITYβ may be set to an authority file
Note that since wdm grabs the keyboard, any other windows will not be able to receive keyboard input. They will be able to interact with the mouse, however; beware of potential security holes here. π IfDisplayManager.DISPLAY.grabServeris set,Xsetupwill not be able to connect to the display at all. Resources for this program can be put into the file named byDisplayManager.DISPLAY.resources.
Here is a sample Xsetup script:
#!/bin/sh
# Xsetup_0 - setup script for one workstation
xcmsdb < /usr/local/lib/monitors/alex.0
xconsole -geometry 480x130-0-0 -notify -verbose -exitOnFail &
π¦ BACKGROUND IMAGE SPECIFICATION π¦
There are several possible ways of specifying a background image. The generic format is type:image. type can be any of:
noneβ the background is not set.solidβ it renders a solid background, andimageis a color name.hgradient,vgradient,dgradientβ a gradient (either horizontal, vertical or diagonal) will be rendered.imageis comma separated of color names, and any number of colors can be specified. πpixmapβ a pixmap will be used for the background.imageis the full path to an image file (tiff,png,jpegandxpmallowed) and it will be scaled to use the full screen. π
π SEE ALSO π
π AUTHOR π
wdm was written by Gene Czarcinski <genec@mindspring.com>. wdm is based on work by Tom Rothamel and xdm, (c) 1988 X Consortium
This man page was written by Marcelo Magallon <mmagallo@debian.org> and extensively modified by Noah Meyerhans <noahm@debian.org>. Much of the content was taken from xdm's manual page.
okay that's the whole thing, bestie, we did it πβ¨ this absolute iconic page is from July 2002 and it's wdm(1x) β go forth and log in, no cap. π
π¦π
π¦ where this page comes from
- debian bookworm: wdm 1.28-26+b1 Β· X11 AND GPL-2.0-or-later
- debian trixie: wdm 1.28-27+b1 Β· X11 AND GPL-2.0-or-later
- ubuntu jammy: wdm 1.28-25build1 Β· X11 AND GPL-2.0-or-later
- ubuntu noble: wdm 1.28-27 Β· X11 AND GPL-2.0-or-later
- ubuntu questing: wdm 1.28-27
- ubuntu resolute: wdm 1.28-27.1 Β· X11 AND GPL-2.0-or-later
- ubuntu stonking: wdm 1.28-27.1 Β· X11 AND GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms