[systemd-devel] systemd user instance and raising limits
Lennart Poettering
lennart at poettering.net
Mon Nov 20 17:23:05 UTC 2017
On Mo, 20.11.17 09:20, Jeff Solomon (jsolomon8080 at gmail.com) wrote:
> Lennart,
>
> Your explanation sounds great but it's just not what I'm seeing.
>
> My user at .service has "PAMName=systemd-user" in the [Service] section.
>
> I have setup limits for the user in /etc/security/limits.d/foo.conf.
>
> I have no other limit overrides in any other systemd file.
>
> Whether I reboot or "systemctl restart user@<uid>" I see the same thing.
> That is, the limits set through pam_limits are not respected.
>
> I consistently see that if I login as that user, then "ulimit -a" shows the
> values I expect from pam_limits while "cat /proc/<pid>/limits" for the user
> instance process or its children do not.
Is pam_limits even enabled for the "systemd-user" PAM fragment on your
distro?
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list