LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-16-2012, 03:05 AM   #1
Winanjaya
Member
 
Registered: Sep 2003
Posts: 209

Rep: Reputation: 32
ulimit: open files: cannot modify limit: Operation not permitted


Dear All,

I build asterisk 1.8 on Centos 5.5 x64 ..
I am facing with warning below when starting the asterisk:

Starting asterisk: /usr/sbin/safe_asterisk: line 86: ulimit: open files: cannot modify limit: Operation not permitted

I have googled and found someone explains that it's an OS problem..

could anybody please advise, what should I do?

many thanks in advance

Regards
Winanjaya
 
Old 02-17-2012, 02:56 AM   #2
vishnu_sreekumar
Member
 
Registered: Jan 2006
Location: India
Distribution: Ubuntu, RHEL, Debian
Posts: 49

Rep: Reputation: 20
Edit /etc/security/limits.conf file and allow the user under which asterisk runs to modify the ulimit to a higher value.

Quote:
<username> hard nofile <number>
 
Old 02-17-2012, 09:44 AM   #3
Winanjaya
Member
 
Registered: Sep 2003
Posts: 209

Original Poster
Rep: Reputation: 32
asterisk hard nofile ??

what number should I put there?
 
Old 02-20-2012, 01:43 AM   #4
vishnu_sreekumar
Member
 
Registered: Jan 2006
Location: India
Distribution: Ubuntu, RHEL, Debian
Posts: 49

Rep: Reputation: 20
Well, it depends upon what your application is trying to set. Basically this is the max number upto which the user can set the ulimit value to. Check the current ulimit by executing the following command after logging in as the specific user. Start with 3 or 4 times the current value and increase if needed.
Quote:
ulimit -n
 
  


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
How can I change the limit of 'Open Files' in ulimit? thomas2004ch Linux - Newbie 10 11-17-2009 06:21 AM
-bash: ulimit: open files: cannot modify limit: Operation not permitted investmentbnker75 Linux - Newbie 12 10-09-2009 07:52 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


All times are GMT -5. The time now is 01:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration