Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 09-25-2007, 01:49 PM   #1
Registered: Oct 2004
Location: USA
Distribution: Fedora Core 3, Red Hat 9, CentOS 4.2, Mandriva, Ret Hat Enterprise Linux 4.0
Posts: 116

Rep: Reputation: 15
Setting ulimit -c permanently

I have a software package that i install. In one of the scripts i set ulimit -c 200000. However it seems like it only gets set in that shell and not systemwide. Then i tried putting it in .bashrc file. That works in every shell for root.

Is there a recommended or better way of setting the ulimit -c systemwide permanently?

Thanks in advance!
Old 09-25-2007, 01:53 PM   #2
Registered: Sep 2004
Location: Dubai, UAE
Distribution: RHL
Posts: 350

Rep: Reputation: 30
u may run that script when system boots to do that open in text editor


and add

ulimit -c 200000

and save n close reboot n check if it works.
Old 10-01-2007, 10:35 PM   #3
Registered: Sep 2007
Posts: 42

Rep: Reputation: 15
check out /etc/security/limits.conf
Old 01-15-2008, 02:14 AM   #4
LQ Newbie
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
does setting in /etc/security/limits.conf have priority over ulimit command?

i entered this record in limits.conf
PHP Code:
*               -       nofile          20000 
but still i see default settings with ulimit command
PHP Code:
[root@travelweb5 ~]# ulimit -n


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
Problem with setting ulimit ncatton Linux - Security 2 06-26-2007 05:26 AM
Setting ulimit to increase # of open files dieyouspammer Slackware 6 02-01-2006 02:42 AM
Setting the xrandr setting permanently dazdaz Linux - Hardware 2 11-24-2005 01:57 AM
Permanently Setting the Java_Home Dynapen Linux - Newbie 2 08-04-2004 01:53 PM
Setting ulimit values in files on Redhat AS 2.1 Darrell22 Linux - Newbie 0 06-29-2004 07:53 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

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

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