LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2009, 11:46 PM   #1
investmentbnker75
Member
 
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162

Rep: Reputation: 15
-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

Last edited by investmentbnker75; 10-11-2009 at 07:35 AM. Reason: Misc
 
Old 09-30-2009, 01:19 AM   #2
irabinovitch
LQ Newbie
 
Registered: Sep 2003
Location: Los Angeles, CA
Distribution: Ubuntu, Debian
Posts: 13

Rep: Reputation: 1
Quote:
Originally Posted by investmentbnker75 View Post
I have a Linux server with oracle. When i su - oracleid i get the error above. But when i su - oracleid2 i dont get the error, just on the first oracle id. Looking at the .bash_profile for both users, they are identical. Does someone have a solution and a reason why one oracle id give this error and the other doesnt?

Thanks

Check your settings in /etc/security/limits.conf It is possible that oracleid2 has been set to allow a higher ulimit settings.
 
Old 09-30-2009, 05:16 PM   #3
investmentbnker75
Member
 
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162

Original Poster
Rep: Reputation: 15
I have read that in other posts. Could you please let me know what the settings would be to set everything to unlimited?

Last edited by investmentbnker75; 10-11-2009 at 07:36 AM.
 
Old 09-30-2009, 05:29 PM   #4
irabinovitch
LQ Newbie
 
Registered: Sep 2003
Location: Los Angeles, CA
Distribution: Ubuntu, Debian
Posts: 13

Rep: Reputation: 1
Quote:
Originally Posted by investmentbnker75 View Post
I have read that in other posts. Could you please let me know what the settings would be to set everything to unlimited and how does it take affect for oracleid2?
Generally you don't want to set unlimited so as to prevent run away processes and application from impacting your system.
 
Old 09-30-2009, 07:10 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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.
 
Old 09-30-2009, 09:15 PM   #6
irabinovitch
LQ Newbie
 
Registered: Sep 2003
Location: Los Angeles, CA
Distribution: Ubuntu, Debian
Posts: 13

Rep: Reputation: 1
Quote:
Originally Posted by chrism01 View Post
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.
I do not believe that the error in question is caused by reaching the max number of open files. Instead it appears the users bash profile is attempting to set the number of open files to a higher number than than the hard limit specified in limits.conf.

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.
 
Old 10-06-2009, 09:53 AM   #7
investmentbnker75
Member
 
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162

Original Poster
Rep: Reputation: 15
Well, i set the limits to unlimited. Why did this happen
Thanks for all the input!

Last edited by investmentbnker75; 10-11-2009 at 07:37 AM.
 
Old 10-06-2009, 08:00 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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.
 
Old 10-06-2009, 10:22 PM   #9
investmentbnker75
Member
 
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162

Original Poster
Rep: Reputation: 15
In what scenerio would only one user be affected by this limit?

Last edited by investmentbnker75; 10-11-2009 at 07:38 AM.
 
Old 10-07-2009, 01:32 AM   #10
irabinovitch
LQ Newbie
 
Registered: Sep 2003
Location: Los Angeles, CA
Distribution: Ubuntu, Debian
Posts: 13

Rep: Reputation: 1
Quote:
Originally Posted by investmentbnker75 View Post
In what scenerio would only one user be affected by this limit while other users on the server aren't? If the limits.conf file has a file limit of 4096, does this mean that this userid has files open that exceeds this limit in the limit.conf file?

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?
 
Old 10-07-2009, 11:32 AM   #11
investmentbnker75
Member
 
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162

Original Poster
Rep: Reputation: 15
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?

Last edited by investmentbnker75; 10-11-2009 at 07:39 AM.
 
Old 10-07-2009, 07:21 PM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
See the links in my post #5
 
Old 10-09-2009, 07:52 AM   #13
investmentbnker75
Member
 
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162

Original Poster
Rep: Reputation: 15
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.

Last edited by investmentbnker75; 10-11-2009 at 07:39 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
-bash: ulimit: open files: cannot modify limit: Operation not permitted pjglinuxq Linux - Server 3 06-11-2010 07:19 AM
Cannot modify sshd_config [Operation not permitted] ximpda Linux - Server 5 04-12-2009 04:29 AM
ulimit: max user processes: cannot modify limit: Operation not permitted farnaw4u Linux - Newbie 3 04-21-2008 07:32 AM
bash# "chvt N" as non-root says 'Operation not permitted' GrapefruiTgirl Linux - Desktop 4 09-16-2007 05:44 PM
link two files in different partitions Operation not permitted osio Linux - General 14 07-19-2006 05:28 PM


All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration