Hi, I’m having a bit of a hard time getting ulimit adjusted in Fedora 32
I added four folders email@example.com, gdm.service.d, gnome-shell-wayland.service.d, and gnome-terminal-server.service.d to /etc/systemd/system/
In firstname.lastname@example.org and gdm.service.d is a single file limits.conf with the line
The other two folders have a similiar file but with higher limits.
I also edited /etc/systemd/system.conf and /etc/systemd/user.conf and changed DefaultLimitNOFILE to DefaultLimitNOFILE=4194304.
In /etc/security/limits.conf, I added
# More files * soft nofile 4194304 * hard nofile 4194304
In /etc/pam.d/login, I added
session required pam_limits.so
The machine is then restarted.
The issue is that typing ulimit -Sn or ulimit -Hn in a gnome-shell still shows a soft limit of 1024 and hard limit of 1048576. Indeed
systemctl show | grep NOFILE shows
What am I missing?
systemctl show email@example.com | grep NOFILE reports
systemctl show gdm.service | grep NOFILE which reports
Nothing I launch from gnome-shell inherits the increased limit…All of them take the defaultlimit, which should have been increased from editing the system.conf and user.conf under /etc/systemd/…