X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fpam_elogind.xml;h=c707b0307debcce3b9af4338fd47accfd6e560ad;hp=927ad1f085c731acdc8d549757f0625c4e6607a9;hb=3ff66cca1cae924f9b6bd4dae3587dd854c77a16;hpb=1cfc78c91965df340cdde100ad6cb3ed50b28927 diff --git a/man/pam_elogind.xml b/man/pam_elogind.xml index 927ad1f08..c707b0307 100644 --- a/man/pam_elogind.xml +++ b/man/pam_elogind.xml @@ -3,22 +3,22 @@ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> @@ -55,51 +55,44 @@ Description pam_elogind registers user sessions with - the elogind login manager - logind8, - and hence the elogind control group hierarchy. + the systemd login manager + systemd-logind.service8, + and hence the systemd control group hierarchy. - On login, this module ensures the following: + On login, this module — in conjunction with systemd-logind.service — ensures the + following: - If it does not exist yet, the user runtime - directory /run/user/$USER is created and - its ownership changed to the user that is logging - in. - - The $XDG_SESSION_ID - environment variable is initialized. If auditing is available - and pam_loginuid.so was run before this - module (which is highly recommended), the variable is - initialized from the auditing session id - (/proc/self/sessionid). Otherwise, an + If it does not exist yet, the user runtime directory /run/user/$UID is + either created or mounted as new tmpfs file system with quota applied, and its ownership + changed to the user that is logging in. + + The $XDG_SESSION_ID environment variable is initialized. If auditing is + available and pam_loginuid.so was run before this module (which is highly recommended), the + variable is initialized from the auditing session id (/proc/self/sessionid). Otherwise, an independent session counter is used. - A new elogind scope unit is created for the - session. If this is the first concurrent session of the user, an - implicit slice below user.slice is - automatically created and the scope placed into it. An instance - of the system service user@.service, which - runs the elogind user manager instance, is started. - + A new systemd scope unit is created for the session. If this is the first concurrent session of + the user, an implicit per-user slice unit below user.slice is automatically created and the + scope placed into it. An instance of the system service user@.service, which runs the + systemd user manager instance, is started. On logout, this module ensures the following: If enabled in - elogind.conf - 5, all processes of the - session are terminated. If the last concurrent session of a user - ends, the user's elogind instance will be terminated too, and so - will the user's slice unit. + logind.conf + 5 (KillUserProcesses=), all processes of the session are + terminated. If the last concurrent session of a user ends, the user's systemd instance will be terminated too, + and so will the user's slice unit. If the last concurrent session of a user ends, - the $XDG_RUNTIME_DIR directory and all its + the user runtime directory /run/user/$UID and all its contents are removed, too. - If the system was not booted up with elogind as init system, + If the system was not booted up with systemd as init system, this module does nothing and immediately returns PAM_SUCCESS. @@ -197,9 +190,10 @@ as AF_UNIX sockets, FIFOs, PID files and similar. It is guaranteed that this directory is local and offers the greatest possible file system feature set the - operating system provides. For further details see the XDG - Base Directory Specification. + Base Directory Specification. $XDG_RUNTIME_DIR + is not set if the current user is not the original user of the session. @@ -279,13 +273,17 @@ session required pam_elogind.so See Also - elogind1, - elogind.conf5, + systemd1, + systemd-logind.service8, + logind.conf5, loginctl1, pam.conf5, pam.d5, pam8, pam_loginuid8, + systemd.scope5, + systemd.slice5, + systemd.service5