Display manager
A display manager (DM) presents the user with a login screen. A session starts when a user successfully enters a valid combination of username and password. It is typically a graphical user interface that is displayed at the end of the boot process in place of the default shell.
A basic login manager only handles basic console authentication: a prompt for username and password. This is what Alpine Linux displays when it is first run — the getty basic login manager, launched by inittab.
A full login manager would additionally provide:-
- Session type detection (
XDG_SESSION_TYPE) and automatic XDG_RUNTIME_DIR setup, possibly through elogind/seatd session managers (requires PAM when using elogind). - A desktop environment selection for the session.
- Optional PAM integration - see PAM section below.
- A graphical greeter may optionally be included.
Display managers are a subset of full login managers that offer further features:-
- A graphical user interface (GUI) greeter, possibly with a choice of themes.
- Autologin, guest sessions and/or fast user switching.
- Wayland/X11 display server control.
- Remote login facility e.g. a Remote Desktop Server or the X-display manager's XDMCP protocol.
There also exist Greetd greeters: user interface (UI) frontends (not to be mistaken for actual login managers) that run under the Greetd daemon login manager:-
- greetd-agreety - Simple, text-based greeter (console UI).
- greetd-tuigreet - A graphical, text-based user interface (TUI) console greeter for Greetd.
List of Display Managers (Graphical Login Managers)
- GDM (gdm): GNOME display manager
- LightDM (lightdm): Cross-desktop display manager
- SDDM (sddm): Simple Desktop Display Manager. Recommended for KDE (Plasma) and LXQt.
- XDM (xdm): X Display Manager
- LXDM (lxdm): A lightweight desktop login manager
- SLiM (slim): Desktop-independent graphical login manager for X11 (abandoned since 2013)
List of Non-Graphical or Daemon-Based Login Managers
Console
- Getty login - Part of the util-linux package
- Agetty (agetty): Console-based login manager
Daemon
Configuration
PAM
PAM provides improved security, but it is not mandatory. It is recommended for advanced features, such as LDAP, 2-factor-authentification (2FA)/multi-factor-authentification (MFA) and session setup via elogind.
Most login managers – including display managers – on Alpine Linux do not use PAM by default, in keeping with the operating system's minimalistic goal; those login managers would require manual setup of PAM:
- Basic login managers, such as getty or login, authenticate directly with /etc/passwd and /etc/shadow.
- Display managers such as lightdm, sddm, plus the greetd login manager, support PAM, but they would need PAM to be installed and configured.
See Alpine Linux's PAM wiki page for further information.
See also
- Elogind - Session and seat management integration.
- Seatd - An alternative to elogind for session and seat management.
- PAM - For advanced authentication and session configuration.
- Setup-desktop - Set up desktops and display managers automatically.
- Getty howto - From the Linux Documentation Project (tldp.org).