Thursday, September 29, 2016

linux - ulimit -n not changing - values limits.conf has no effect

I am trying to raise the open file descriptor maximum for all users on an ubuntu machine.



This question is somewhat of a follow up to this question.



open file descriptor limits.conf setting isn't read by ulimit even when pam_limits.so is required




except that i've added the required "root" entries in limits.conf



Here are the entries



*               soft    nofile           100000
* hard nofile 100000
root soft nofile 100000
root hard nofile 100000



Lines related to pam_limits.so have been un-commented in all relevant files in /etc/pam.d/ and fs.file-max has been set correctly in /etc/sysctl.conf



However, I still see



abc@machine-2:/etc/pam.d$ ulimit -n
1024


after reboot.




What could be the problem?



My default shell is /bin/sh and i can't use chsh to change my default shell since the my user on the machine is authenticated via some distributed authentication scheme.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...