V
V
Vyacheslav Grachunov2020-01-23 00:51:48
linux
Vyacheslav Grachunov, 2020-01-23 00:51:48

ulimit not working, 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 registered, changing limits through /etc/security/limits.conf also does not work.
VDS (real server) on Ubuntu 18.04, closed all ssh sessions

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Vasilyev, 2020-01-23
@Qwentor

Maximum 1048576

V
Vitaly Karasik, 2020-01-23
@vitaly_il1

1) Under root user?
2) ulimit is a per-user limit, it cannot be greater than kernel limits. Check and increase if necessary fs.nr_open in sysctl ( https://access.redhat.com/solutions/1479623)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question