2

I want to increase the ulimits and used the commands for it

ulimit -n
1024
ulimit -n 10000
bash: ulimit: open files: cannot modify limit: Operation not permitted

After lot of searching. I got a my links but By taking the reference of this link I just follow each and every command in the terminal but can't increase the ulimit in the system why and How will I do it Can anybody please explain this.

misha
  • 21

1 Answers1

1

Did you try without Sudo or Root privileges? Also -

There are two kinds of limits:

  • Soft limits are simply the currently enforced limits

  • Hard limits mark the maximum value which cannot be exceeded by setting a soft limit

Soft limits could be set by any user while hard limits are changeable only by root. Limits are a property of a process. They are inherited when a child process is created so system-wide limits should be set during the system initialization in init scripts and user limits should be set during user login for example by using pam_limits.

There are often defaults set when the machine boots. So, even though you may reset your ulimit in an individual shell, you may find that it resets back to the previous value on reboot. You may want to grep your boot scripts for the existence ulimit commands if you want to change the default.

Shaze
  • 426