[systemd-devel] systemd user instance and raising limits

Michael Biebl mbiebl at gmail.com
Mon Nov 20 18:26:41 UTC 2017


https://anonscm.debian.org/git/pkg-systemd/systemd.git/commit/debian/extra/pam.d/systemd-user?id=b3238e9604fa61c7ec45a2d0acc1f8b40728cd87

This might be relevant to you.

See how the pam config contains pam_limits

2017-11-20 18:49 GMT+01:00 Lennart Poettering <lennart at poettering.net>:
> On Mo, 20.11.17 09:47, Jeff Solomon (jsolomon8080 at gmail.com) wrote:
>
>> I guess the answer is "no." :)
>>
>> This is Ubuntu 16.04. On CentOS7.3, pam_limits is part of systemd-user
>> through system-auth
>>
>> Here is /etc/pam.d/systemd-user from my Ubuntu system:
>>
>> # This file is part of systemd.
>> #
>> # Used by systemd --user instances.
>>
>> @include common-account
>>
>> session  required pam_selinux.so close
>> session  required pam_selinux.so nottys open
>> @include common-session-noninteractive
>> session optional pam_systemd.so
>
> Have you checked the snippets listed in the @include lines? Maybe they
> pull it in?
>
>> So on RHEL systems, it doesn't matter that is works because user instances
>> are officially not included and it just doesn't work on Ubuntu because
>> pam_limits is not used by systemd-user.
>>
>> I find it odd that two major distros differ in this behavior.
>
> PAM is a mess. Setups and syntax vary wildly between distros. It's sad.
>
> Lennart
>
> --
> Lennart Poettering, Red Hat
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list