Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* limit or ulimit
@ 2000-08-07  9:58 Hanchul Kim
  2000-08-08  2:11 ` Stuart Midgley
  0 siblings, 1 reply; 10+ messages in thread
From: Hanchul Kim @ 2000-08-07  9:58 UTC (permalink / raw)
  To: axp-list

Hi All,

I would appreicate if someone tells me how I can change the "hard limit" of
"stacksize" as superuser.
I am currently running RedHat 6.2 on Compaq DS10.

Thank you.

Hanchul Kim




^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: limit or ulimit
@ 2000-08-07 13:09 Kurt Ludwig
  2000-08-07 20:52 ` W Bauske
  0 siblings, 1 reply; 10+ messages in thread
From: Kurt Ludwig @ 2000-08-07 13:09 UTC (permalink / raw)
  To: axp-list

Depends on which shell you're using as far as limit and ulimit go.
it's limit for tcsh and csh and ulimit for bash and sh

the default settings for bash/sh are held in /etc/profile and the defaults
for csh/tcsh are in /etc/csh.cshrc

for root, it reads the environment settings exclusively from /root/.bashrc
to set the hard limit specify a -H for bash...
i.e.:

#ulimit -H -s 4096
(this hard sets the limit of the stack size to 4096k in bash/sh)

for roo it reads the env from /root/.cshrc exclusively for csh/tcsh
#limit -H stacksize 4096k
(this hard sets the limit of the stack size to 4096k in tcsh/csh)

Kurt Ludwig


Hanchul Kim <hanchul@kriss.re.kr> wrote:
>Hi All,
>
>I would appreicate if someone tells me how I can change the "hard limit"
of
>"stacksize" as superuser.
>I am currently running RedHat 6.2 on Compaq DS10.
>
>Thank you.
>
>Hanchul Kim
>
>
>
>_______________________________________________
>Axp-list mailing list
>Axp-list@redhat.com
>https://listman.redhat.com/mailman/listinfo/axp-list
>





^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: limit or ulimit
@ 2000-08-07 21:24 Kurt Ludwig
  0 siblings, 0 replies; 10+ messages in thread
From: Kurt Ludwig @ 2000-08-07 21:24 UTC (permalink / raw)
  To: axp-list

that's an interface through PAM  to be able to set the limits for specific
users / groups instead of having a global config.

it basically makes it easier to admin the limits for various users/ groups
instead of writing all the code into /etc/profile and /etc/csh.cshrc

you don't have to write search code for specific things (group membership,
username, etc. etc.) in the default config files, because PAM can handle it
for you.

I'm not sure though if the /etc/security/limits.conf or /etc/profile /
/etc/csh.cshrc takes priority (I've always used the default configs for the
respective shells because I work between different Unicies and Linucies).

Kurt


"W Bauske" <wsb@paralleldata.com> wrote:
>Kurt Ludwig wrote:
>> 
>> Depends on which shell you're using as far as limit and ulimit go.
>> it's limit for tcsh and csh and ulimit for bash and sh
>> 
>> the default settings for bash/sh are held in /etc/profile and the
defaults
>> for csh/tcsh are in /etc/csh.cshrc
>> 
>> for root, it reads the environment settings exclusively from
/root/.bashrc
>> to set the hard limit specify a -H for bash...
>> i.e.:
>> 
>> #ulimit -H -s 4096
>> (this hard sets the limit of the stack size to 4096k in bash/sh)
>> 
>> for roo it reads the env from /root/.cshrc exclusively for csh/tcsh
>> #limit -H stacksize 4096k
>> (this hard sets the limit of the stack size to 4096k in tcsh/csh)
>> 
>
>I see there is a file called /etc/security/limits.conf.
>How do the shell settings interact with what's there?
>
>Just curious.
>
>
>Wes
>
>
>
>_______________________________________________
>Axp-list mailing list
>Axp-list@redhat.com
>https://listman.redhat.com/mailman/listinfo/axp-list
>





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2000-08-08 12:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-07  9:58 limit or ulimit Hanchul Kim
2000-08-08  2:11 ` Stuart Midgley
2000-08-08  2:40   ` Hanchul Kim
2000-08-08  2:45     ` Stuart Midgley
2000-08-08  6:58       ` Hanchul Kim
2000-08-08 12:41     ` Richard June
  -- strict thread matches above, loose matches on Subject: below --
2000-08-07 13:09 Kurt Ludwig
2000-08-07 20:52 ` W Bauske
2000-08-07 21:08   ` Michal Jaegermann
2000-08-07 21:24 Kurt Ludwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox