Created
May 27, 2015 16:50
-
-
Save yblee85/86ff339846a1930a2493 to your computer and use it in GitHub Desktop.
Ubuntu, Increase number of max open files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edit /etc/security/limits.conf | |
# non-root users | |
* soft nofile 40000 | |
* hard nofile 40000 | |
# root users | |
root soft nofile 40000 | |
root hard nofile 40000 | |
edit /etc/pam.d/common-session and /etc/pam.d/common-session-noninteractive | |
add this line | |
session required pam_limits.so | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So I did vim /etc/pam.d/su and found:
//Sets up user limits, please uncomment and read /etc/security/limits.conf
//to enable this functionality.
//(Replaces the use of /etc/limits in old login)
session required pam_limits.so