Skip to content

Commit 66a5b90

Browse files
committed
man: update pam_systemd and systemd-logind man pages a bit
This builds on @utezduyar's systemd#4640, but extends on it. Fixes: systemd#4550 Replaces: systemd#4640
1 parent 0b8fab9 commit 66a5b90

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

man/pam_systemd.xml

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -59,40 +59,33 @@
5959
<citerefentry><refentrytitle>systemd-logind.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
6060
and hence the systemd control group hierarchy.</para>
6161

62-
<para>On login, this module ensures the following:</para>
62+
<para>On login, this module — in conjunction with <filename>systemd-logind.service</filename> — ensures the
63+
following:</para>
6364

6465
<orderedlist>
65-
<listitem><para>If it does not exist yet, the user runtime
66-
directory <filename>/run/user/$USER</filename> is created and
67-
its ownership changed to the user that is logging
68-
in.</para></listitem>
69-
70-
<listitem><para>The <varname>$XDG_SESSION_ID</varname>
71-
environment variable is initialized. If auditing is available
72-
and <command>pam_loginuid.so</command> was run before this
73-
module (which is highly recommended), the variable is
74-
initialized from the auditing session id
75-
(<filename>/proc/self/sessionid</filename>). Otherwise, an
66+
<listitem><para>If it does not exist yet, the user runtime directory <filename>/run/user/$UID</filename> is
67+
either created or mounted as new <literal>tmpfs</literal> file system with quota applied, and its ownership
68+
changed to the user that is logging in.</para></listitem>
69+
70+
<listitem><para>The <varname>$XDG_SESSION_ID</varname> environment variable is initialized. If auditing is
71+
available and <command>pam_loginuid.so</command> was run before this module (which is highly recommended), the
72+
variable is initialized from the auditing session id (<filename>/proc/self/sessionid</filename>). Otherwise, an
7673
independent session counter is used.</para></listitem>
7774

78-
<listitem><para>A new systemd scope unit is created for the
79-
session. If this is the first concurrent session of the user, an
80-
implicit slice below <filename>user.slice</filename> is
81-
automatically created and the scope placed into it. An instance
82-
of the system service <filename>[email protected]</filename>, which
83-
runs the systemd user manager instance, is started.
84-
</para></listitem>
75+
<listitem><para>A new systemd scope unit is created for the session. If this is the first concurrent session of
76+
the user, an implicit per-user slice unit below <filename>user.slice</filename> is automatically created and the
77+
scope placed into it. An instance of the system service <filename>[email protected]</filename>, which runs the
78+
systemd user manager instance, is started. </para></listitem>
8579
</orderedlist>
8680

8781
<para>On logout, this module ensures the following:</para>
8882

8983
<orderedlist>
9084
<listitem><para>If enabled in
9185
<citerefentry><refentrytitle>logind.conf</refentrytitle>
92-
<manvolnum>5</manvolnum></citerefentry>, all processes of the
93-
session are terminated. If the last concurrent session of a user
94-
ends, the user's systemd instance will be terminated too, and so
95-
will the user's slice unit.</para></listitem>
86+
<manvolnum>5</manvolnum></citerefentry> (<varname>KillUserProcesses=</varname>), all processes of the session are
87+
terminated. If the last concurrent session of a user ends, the user's systemd instance will be terminated too,
88+
and so will the user's slice unit.</para></listitem>
9689

9790
<listitem><para>If the last concurrent session of a user ends,
9891
the <varname>$XDG_RUNTIME_DIR</varname> directory and all its

man/systemd-logind.service.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,14 @@
6060
manages user logins. It is responsible for:</para>
6161

6262
<itemizedlist>
63-
<listitem><para>Keeping track of users and sessions, their
64-
processes and their idle state</para></listitem>
63+
<listitem><para>Keeping track of users and sessions, their processes and their idle state. This is implemented by
64+
allocating a systemd slice unit for each user below <filename>user.slice</filename>, and a scope unit below it
65+
for each concurrent session of a user. Also, a per-user service manager is started as system service instance of
66+
<filename>[email protected]</filename> for each user logged in.</para></listitem>
67+
68+
<listitem><para>Generating and managing session IDs. If auditing is available and an audit session ID is set for
69+
a session already, the session ID is initialized from it. Otherwise, an independent session counter is
70+
used.</para></listitem>
6571

6672
<listitem><para>Providing PolicyKit-based access for users to
6773
operations such as system shutdown or sleep</para></listitem>

0 commit comments

Comments
 (0)