1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
6 <refentry id="systemd-logind.service" conditional='ENABLE_LOGIND'>
9 <title>systemd-logind.service</title>
10 <productname>systemd</productname>
14 <refentrytitle>systemd-logind.service</refentrytitle>
15 <manvolnum>8</manvolnum>
19 <refname>systemd-logind.service</refname>
20 <refname>systemd-logind</refname>
21 <refpurpose>Login manager</refpurpose>
25 <para><filename>systemd-logind.service</filename></para>
26 <para><filename>/usr/lib/systemd/systemd-logind</filename></para>
30 <title>Description</title>
32 <para><command>systemd-logind</command> is a system service that
33 manages user logins. It is responsible for:</para>
36 <listitem><para>Keeping track of users and sessions, their processes and their idle state. This is implemented by
37 allocating a systemd slice unit for each user below <filename>user.slice</filename>, and a scope unit below it
38 for each concurrent session of a user. Also, a per-user service manager is started as system service instance of
39 <filename>user@.service</filename> for each logged in user.</para></listitem>
41 <listitem><para>Generating and managing session IDs. If auditing is available and an audit session ID is already set for
42 a session, then this ID is reused as the session ID. Otherwise, an independent session counter is
43 used.</para></listitem>
45 <listitem><para>Providing <ulink
46 url="https://www.freedesktop.org/wiki/Software/polkit">polkit</ulink>-based access for users for
47 operations such as system shutdown or sleep</para>
50 <listitem><para>Implementing a shutdown/sleep inhibition logic for applications</para></listitem>
52 <listitem><para>Handling of power/sleep hardware keys</para></listitem>
54 <listitem><para>Multi-seat management</para></listitem>
56 <listitem><para>Session switch management</para></listitem>
58 <listitem><para>Device access management for users</para></listitem>
60 <listitem><para>Automatic spawning of text logins (gettys) on virtual console activation and user
61 runtime directory management</para></listitem>
63 <listitem><para>Scheduled shutdown</para></listitem>
65 <listitem><para>Sending "wall" messages</para></listitem>
68 <para>User sessions are registered with logind via the
69 <citerefentry><refentrytitle>pam_systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
73 <citerefentry><refentrytitle>logind.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
74 for information about the configuration of this service.</para>
77 <citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry>
78 for information about the basic concepts of logind
79 such as users, sessions and seats.</para>
82 <citerefentry><refentrytitle>org.freedesktop.login1</refentrytitle><manvolnum>5</manvolnum></citerefentry>
84 <citerefentry><refentrytitle>org.freedesktop.LogControl1</refentrytitle><manvolnum>5</manvolnum></citerefentry>
85 for information about the D-Bus APIs <filename>systemd-logind</filename> provides.</para>
87 <para>For more information on the inhibition logic see the <ulink
88 url="https://www.freedesktop.org/wiki/Software/systemd/inhibit">Inhibitor
89 Lock Developer Documentation</ulink>.</para>
91 <para>If you are interested in writing a display manager that makes use of logind, please have look at
92 <ulink url="https://www.freedesktop.org/wiki/Software/systemd/writing-display-managers">Writing Display
94 If you are interested in writing a desktop environment that makes use of logind, please have look at
95 <ulink url="https://www.freedesktop.org/wiki/Software/systemd/writing-desktop-environments">Writing
96 Desktop Environments</ulink>.</para>
100 <title>See Also</title>
102 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
103 <citerefentry><refentrytitle>systemd-user-sessions.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
104 <citerefentry><refentrytitle>loginctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
105 <citerefentry><refentrytitle>logind.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
106 <citerefentry><refentrytitle>pam_systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
107 <citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry>