Unix Technical Forum

Setting default ulimit values

This is a discussion on Setting default ulimit values within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, I'm wondering where the ulimit defaults are being set in Slack 10. I have to set the max ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 04:42 PM
Philip Lawatsch
 
Posts: n/a
Default Setting default ulimit values

Hi,

I'm wondering where the ulimit defaults are being set in Slack 10.

I have to set the max open filedes limit for all users (not just root)
to something higher than 1024.

Where would I be able to do this?

kind regards Philip
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 04:42 PM
Dominik L.. Borkowski
 
Posts: n/a
Default Re: Setting default ulimit values

Philip Lawatsch wrote:

> Hi,
>
> I'm wondering where the ulimit defaults are being set in Slack 10.
>
> I have to set the max open filedes limit for all users (not just root)
> to something higher than 1024.


look in /etc/rc.d/rc.S, there is a function that tests for presence
of /etc/sysctl.conf, and if it exists, it uses sysctl to set the desired
values. My guess is that you can use /etc/sysctl.conf to set those values.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 04:42 PM
Menno Duursma
 
Posts: n/a
Default Re: Setting default ulimit values

On Mon, 18 Oct 2004 16:41:49 -0400, Dominik L.. Borkowski wrote:
> Philip Lawatsch wrote:


>> I'm wondering where the ulimit defaults are being set in Slack 10.


I don't think any are being set, their just what /sbin/init defaults to.

/etc/passwd
/etc/login.defs
/etc/limits
/etc/initscript < a script is provided as: /sbin/initscript.sample

man login
man login.defs
man limits
man init
man initscript

>> I have to set the max open filedes limit for all users (not just root)
>> to something higher than 1024.

>
> look in /etc/rc.d/rc.S, there is a function that tests for presence
> of /etc/sysctl.conf, and if it exists, it uses sysctl to set the desired
> values. My guess is that you can use /etc/sysctl.conf to set those values.


"man proc<return>/file-max<return>" provides some more info on that.

--
-Menno.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 04:43 PM
Philip Lawatsch
 
Posts: n/a
Default Re: Setting default ulimit values

Menno Duursma wrote:
> On Mon, 18 Oct 2004 16:41:49 -0400, Dominik L.. Borkowski wrote:
>
>>Philip Lawatsch wrote:

>
>
>>>I'm wondering where the ulimit defaults are being set in Slack 10.

>
>
> I don't think any are being set, their just what /sbin/init defaults to.
>
> /etc/passwd
> /etc/login.defs
> /etc/limits
> /etc/initscript < a script is provided as: /sbin/initscript.sample
>
> man login
> man login.defs
> man limits
> man init
> man initscript


Yes, this is what I've been looking for. Thanks a lot.

kind regards Philip
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com