[systemd-devel] [206] Using `systemd --user` to manage user's session -- is it still possible?

Mantas Mikulėnas grawity at gmail.com
Sat Sep 7 11:05:06 PDT 2013


On Sat, Sep 7, 2013 at 8:12 PM, Ivan Shapovalov <intelfx100 at gmail.com> wrote:
> On Wednesday 28 August 2013 at 16:07:23, Mantas wrote:
>> Partial reply:
>>
>> On Wed, Aug 28, 2013 at 10:15 AM, Ivan Shapovalov <intelfx100 at gmail.com>
> wrote:
>> > With v206, that stopped working. It seems that `systemd --user` now must
> be
>> > launched
>> > 1) with PAMName=systemd-shared
>> > […]
>> > 3) with /etc/pam.d/systemd-shared symlinked to system-login or whatever
>> >    (see https://bugs.freedesktop.org/show_bug.cgi?id=68164)
>> >
>> > ...to have XDG_RUNTIME_DIR=/run/user/%U instead of /run.
>>
>> The only requirement here is that PAM must call pam_systemd.so to set
>> up cgroups and XDG_RUNTIME_DIR. It's nothing new to v205/v206.
>
> Seems like it is a distro problem (not having /etc/pam.d/systemd-shared).
> Anybody using Arch, do you have that file?

Yeah, Arch does not include it [yet]. The following should work:

    auth required pam_deny.so
    account include system-login
    session include system-login
    password required pam_deny.so

-- 
Mantas Mikulėnas <grawity at gmail.com>


More information about the systemd-devel mailing list