Wednesday, February 24, 2016

How do I increase the open files limit for a non-root users in RHEL/CentOS and Amazon Linux

Each user will have a separate file under /etc/security/limits.d

# cd /etc/security/limits.d

edit the name of the user with the required ulimit value. Here am setting it to 10000
#vim bharath.conf

bharath   - nofile 10000
bharath   - nproc  65536

save and close the session. login again.

run #ulimit -a or ulimit -n

It will reflect for the user bharath. 

No comments:

Post a Comment