Bug#923312: gnome-terminal ignores system ulimits
Harald Dunkel
harald.dunkel at aixigo.de
Mon Mar 11 10:34:24 GMT 2019
Hi Simon,
On 3/11/19 10:04 AM, Simon McVittie wrote:
>
> I assume from the version that you're using stretch? Please report
> bugs with reportbug whenever possible, that way I'd already have this
> information.
>
ACK
>
> Do you have a line for pam_limits.so in /etc/pam.d/systemd-user?
>
Yes.
> Do you have unmerged local changes for /etc/pam.d/systemd-user,
> with a version containing "session required pam_limits.so" in
> /etc/pam.d/systemd-user.dpkg-dist? If you do, please merge the changes
> in the distributed version into your local version.
>
No.
> After making sure you have "session required pam_limits.so" in
> /etc/pam.d/systemd-user, do these commands, run from an ordinary
> non-root login session:
>
> prlimit -p $(pgrep -u $(id -u) -f "systemd --user")
> prlimit -p $(pgrep -u $(id -u) -f "dbus-daemon --session")
>
> report the limits you would expect?
>
No, I get 1024/4096 for nofiles. /etc/security/limits.d/local.conf
says
* soft nofile 4096
* hard nofile 16584
root soft nofile 4096
root hard nofile 16584
/proc/$$/limits shows the expected limits, unless gnome-terminal is
involved.
systemd is version 232-25+deb9u9
Regards
Harri
More information about the Pkg-systemd-maintainers
mailing list