Re: [systemd-devel] Per user limit defaults in systemd.conf

2020-09-01 Thread Lennart Poettering
On Di, 01.09.20 08:57, Joshua Miller (joshuamille...@gmail.com) wrote: > On Tue, Sep 1, 2020 at 7:30 AM Lennart Poettering > wrote: > > Anyway, do you want this for login users or for system services? > > Initially your reference to User= suggests the latter, but your > > reference to PAM suggest

Re: [systemd-devel] Per user limit defaults in systemd.conf

2020-09-01 Thread Joshua Miller
On Tue, Sep 1, 2020 at 7:30 AM Lennart Poettering wrote: > Anyway, do you want this for login users or for system services? > Initially your reference to User= suggests the latter, but your > reference to PAM suggests the former. What is it now? I'm looking at system services; sorry for conflatin

Re: [systemd-devel] Per user limit defaults in systemd.conf

2020-09-01 Thread Lennart Poettering
On Mo, 31.08.20 17:34, Joshua Miller (joshuamille...@gmail.com) wrote: > Is there a way to set per-user defaults for values in systemd.conf? e.g. > I'd like to set DefaultLimitMEMLOCK for the 'app' user (User=app), such > that all units run as User=app get the setting. Something like that does n

Re: [systemd-devel] Per user limit defaults in systemd.conf

2020-09-01 Thread Michal Koutný
Hello. On Mon, Aug 31, 2020 at 05:34:15PM -0700, Joshua Miller wrote: > Is there a way to set per-user defaults for values in systemd.conf? I don't think so. The config values are typically independent of the running user. > I'm looking for a way to do what's done via pam_limits per limits.conf