-bash: ulimit: open files: cannot modify limit: Operation not permitted
I have a server. When i su - userid i get the error above. Does someone have a solution?
Thanks |
Quote:
Check your settings in /etc/security/limits.conf It is possible that oracleid2 has been set to allow a higher ulimit settings. |
I have read that in other posts. Could you please let me know what the settings would be to set everything to unlimited?
|
Quote:
|
What it means is there are already a max num of open files being used by oracleid.
You need to find out what they are eg lsof http://linux.die.net/man/8/lsof, fuser http://linux.die.net/man/1/fuser. You may be able to justify raising the limit for that user, but I wouldn't set it unlimited for the reasons described above. |
Quote:
I would encourage the original poster to check what their bash_profile, etc are try to set the max # of open file handles to and if its reasonable set the soft/hard limits in limits.conf accordingly. If I recall correctly Oracle recommends setting them quite high, but again setting to unlimited is probably not desirable. If however when setting a lower number you begin to encounter errors about reaching the max number of open files, you should use lsof command as Chris mentioned and check what files are open. |
Well, i set the limits to unlimited. Why did this happen
Thanks for all the input! |
From http://linux.die.net/man/5/limits.conf
[quote] hard for enforcing hard resource limits. These limits are set by the superuser and enforced by the Kernel. The user cannot raise his requirement of system resources above such values. [\quote] Same principle as disk quotas, soft limits are a warning, hard limits cannot be overridden by user. |
In what scenerio would only one user be affected by this limit?
|
Quote:
limits.conf allows you to set these on a per user/group level. Is it possible its specifically set higher for an the user thats not encountering problems? Maybe you can provide an excerpt or the full file here? |
Thank for the response all. Why the issue happened in the first place.
Is it safe to assume that this particular user exceeded the hard limit? |
See the links in my post #5
|
Chris, while i appreciate the response, i was just looking for a quick answer to my basic questions. I have read the man pages you posted before i posed this question but wanted to clarify the issues i was having even more, thats why i posted this issue. So im hoping for someone has run into this issue before and can just clarify it a little bit for me.
|
All times are GMT -5. The time now is 09:54 AM. |