The hard limit of the number of open files is set to 1024 on my machine.

  • I changed /etc/security/limits.conf and added 'idror hard nofile 65000'.
  • In my shell I tried ulimit -n 65000. I get 'ulimit: value exceeds hard limit'
  • In my shell I tried ulimit -Hn 65000. I get 'ulimit: can't raise hard limits'

So how can I increase the setting for the limit of open files without reboot?

  • 1
    After a limits.conf change, you need to log out and back in. Nov 15, 2012 at 0:57

1 Answer 1


You can just change it as root. For example:

$ ulimit -n  
$ ulimit -n 8192
bash: ulimit: open files: cannot modify limit: Operation not permitted
$ sudo bash                    
# ulimit -n                    
# ulimit -n 8192                  
# su - normaluser                 
$ ulimit -n                       

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.