Scott Lurndal wrote:
> Steve <ThisOne_at_Aint.valid> writes:
>
>>Scott Lurndal wrote:
>>
>>>Andreas Korn <andreas.korn.NOSPAM_at_onlinehome.de> writes:
>>>
>>>
>>>>linuxquestion_at_yahoo.com wrote:
>>>>
>>>>
>>>>
>>>>>Hello,
>>>>>
>>>>>I need to set a few parameters at boot time.
>>>>>
>>>
>>>
>>>>>Is it possible to set these ulimit values, in a file?
>>>>>What is the file? What is the secret?
>>>>>
>>>>>
>>>>>Thanks a lot
>>>>
>>>>If you need these for a specific user, set them in the ~/.tcshrc or
>>>>~/.bashrc or whatever your user config for your shell is. If you want it
>>>>systemwide, place files like limits.sh and limits.csh with the calls in
>>>>/etc/profile.d .
>>>
>>>
>>>This will only work, of course, if you wish to lower the values, not
>>>if you with to increase them. To increase them, pam is the right
>>>answer.
>>>
>>>scott
>>>
>>>
>>>
>>>>Andreas
>>
>>Personally, I'd put them in /etc/profile. This is always run for all
>>users, and with root privileges. That way, you can raise them up to the max.
>
>
> /etc/profile is executed in the context of the logged in user, not root.
> You cannot raise the ulimit using /etc/profile, only lower it.
>
>
> scott
>
>
>>Steve
I was about to deny 'hotly' this statement, but thought to check first.
Glad I did! As you may have guessed, this used to be the way it was
done, at least on commercial *nixes ( Solaris, HP-UX, DEC Ultrix ).
Either it has been changed, or Linux differs from the old System V in
this way.
It's always good to learn something new, even at the weekend!
Cheers,
Steve
Received on Fri Jul 02 2004 - 16:44:46 CDT