# Add the following line to /etc/security/limits.conf # {user}/@{group} soft/hard/-(both) {item} {vaule} * - nofile 999999
# make sure the file (/etc/pam.d/login for console, /etc/pam.d/lightdm for lightdm and so on) contains the following line session required pam_limits.so
# login again
# Check ulimit -Sn # soft limit; can be raised up to the hard limit ulimit -Hn # hard limit