Ulimit does not work, what's the matter?

ulimit-n 1617596
-bash: ulimit: open files: cannot modify limit: Operation not permitted


session required pam_limits.so in /etc/pam.d/common-session prescribed, change limits via /etc/security/limits.conf also does not work.

VDS (real-server) on Ubuntu 18.04, all the ssh session closed
April 4th 20 at 13:25
2 answers
April 4th 20 at 13:27
Solution
Max 1048576
April 4th 20 at 13:29
1) as root user?

2) ulimit is the limit per-user, it cannot be more kernel limits. Check and increase if necessary fs.in nr_open sysctl (https://access.redhat.com/solutions/1479623)

Find more questions by tags Linux