LX0-104 · Question #285
An administrator has just set up the X Display Manager as the default display manager. Which of the following files should be edited to change the default background for it?
The correct answer is A. /etc/X11/xdm/Xsetup. To change the default background for the X Display Manager (XDM), the administrator should edit the /etc/X11/xdm/Xsetup script.
Question
Options
- A/etc/X11/xdm/Xsetup
- B/etc/X11/prefdm
- C/etc/X11/xorg.conf
- D/etc/X11/xdm.conf
How the community answered
(29 responses)- A93% (27)
- B3% (1)
- C3% (1)
Why each option
To change the default background for the X Display Manager (XDM), the administrator should edit the `/etc/X11/xdm/Xsetup` script.
The `/etc/X11/xdm/Xsetup` script is executed by `xdm` at server startup (before the login screen appears) on the console display. This script is the appropriate place to include commands, such as `xsetroot` or `xloadimage`, to set the background of the X display.
`/etc/X11/prefdm` is typically a script used to choose which display manager to run, not to configure its visual appearance or background.
`/etc/X11/xorg.conf` configures the X server itself (e.g., input devices, display resolution, drivers), not the visual appearance or background of the display manager.
`/etc/X11/xdm.conf` (or often `/etc/X11/xdm/xdm-config`) contains `xdm`'s main configuration directives, but the `Xsetup` script is where specific visual commands like background setting are placed.
Concept tested: XDM configuration files and background settings
Source: https://man7.org/linux/man-pages/man1/xdm.1.html
Topics
Community Discussion
No community discussion yet for this question.