Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to remove "memorylocked" and "maxproc" limits. I am using tcsh shell. I read that if I use "#limit memorylocked unlimited" and "#limit maxproc unlimited" then they will be set to unlimited. I did that as a root user. But after I restarted my computer then again they were all restored to their default values. How can I resolve this and set their values and also "openfiles" value of my Linux to unlimited permanently ? I am using ubuntu 12.04 with a 64 bit system and tcsh shell. I need them to be unlimited to run my simulations. Thanks

share|improve this question
Even a temporary way to unlimit them will be good too. I just found out that with temporary unlimited values, my simulation will be ok too. – Babak H Jan 20 '13 at 7:01

You should check out the file /etc/security/limits.conf.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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