]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/systemd-logind.service.xml
Merge pull request #9303 from poettering/busctl-fixlets
[thirdparty/systemd.git] / man / systemd-logind.service.xml
1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4
5 <!--
6 SPDX-License-Identifier: LGPL-2.1+
7 -->
8
9 <refentry id="systemd-logind.service" conditional='ENABLE_LOGIND'>
10
11 <refentryinfo>
12 <title>systemd-logind.service</title>
13 <productname>systemd</productname>
14 </refentryinfo>
15
16 <refmeta>
17 <refentrytitle>systemd-logind.service</refentrytitle>
18 <manvolnum>8</manvolnum>
19 </refmeta>
20
21 <refnamediv>
22 <refname>systemd-logind.service</refname>
23 <refname>systemd-logind</refname>
24 <refpurpose>Login manager</refpurpose>
25 </refnamediv>
26
27 <refsynopsisdiv>
28 <para><filename>systemd-logind.service</filename></para>
29 <para><filename>/usr/lib/systemd/systemd-logind</filename></para>
30 </refsynopsisdiv>
31
32 <refsect1>
33 <title>Description</title>
34
35 <para><command>systemd-logind</command> is a system service that
36 manages user logins. It is responsible for:</para>
37
38 <itemizedlist>
39 <listitem><para>Keeping track of users and sessions, their processes and their idle state. This is implemented by
40 allocating a systemd slice unit for each user below <filename>user.slice</filename>, and a scope unit below it
41 for each concurrent session of a user. Also, a per-user service manager is started as system service instance of
42 <filename>user@.service</filename> for each logged in user.</para></listitem>
43
44 <listitem><para>Generating and managing session IDs. If auditing is available and an audit session ID is already set for
45 a session, then this ID is reused as the session ID. Otherwise, an independent session counter is
46 used.</para></listitem>
47
48 <listitem><para>Providing PolicyKit-based access for users for
49 operations such as system shutdown or sleep</para></listitem>
50
51 <listitem><para>Implementing a shutdown/sleep inhibition logic
52 for applications</para></listitem>
53
54 <listitem><para>Handling of power/sleep hardware
55 keys</para></listitem>
56
57 <listitem><para>Multi-seat management</para></listitem>
58
59 <listitem><para>Session switch management</para></listitem>
60
61 <listitem><para>Device access management for
62 users</para></listitem>
63
64 <listitem><para>Automatic spawning of text logins (gettys) on
65 virtual console activation and user runtime directory
66 management</para></listitem>
67 </itemizedlist>
68
69 <para>User sessions are registered with logind via the
70 <citerefentry><refentrytitle>pam_systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
71 PAM module.</para>
72
73 <para>See
74 <citerefentry><refentrytitle>logind.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
75 for information about the configuration of this service.</para>
76
77 <para>See
78 <citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry>
79 for information about the basic concepts of logind
80 such as users, sessions and seats.</para>
81
82 <para>See the <ulink
83 url="https://www.freedesktop.org/wiki/Software/systemd/logind">
84 logind D-Bus API Documentation</ulink> for information about the
85 APIs <filename>systemd-logind</filename> provides.</para>
86
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>
90 </refsect1>
91
92 <refsect1>
93 <title>See Also</title>
94 <para>
95 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
96 <citerefentry><refentrytitle>systemd-user-sessions.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
97 <citerefentry><refentrytitle>loginctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
98 <citerefentry><refentrytitle>logind.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
99 <citerefentry><refentrytitle>pam_systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
100 <citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry>
101 </para>
102 </refsect1>
103
104 </refentry>