[ale] Conundrum for the day: file resource limit problem

Joe Steele joe at madewell.com
Wed Aug 15 17:43:45 EDT 2001


I believe that anyone can change their hard and soft limits, but only 
to the extent that the new limits don't exceed the existing hard limit.  
Only root can increase limits above the existing hard limit.  And since 
commands in /etc/profile are executed by the user's shell and not by 
root, ulimit is powerless for increasing existing hard limits.

If you are using PAM, the place to look is in /etc/security/limits.conf.  
There you can independently control a user's limits.

--Joe

-----Original Message-----
From:	Davis, Ricardo C. [SMTP:RCDavis at intermedia.com]
Sent:	Wednesday, August 15, 2001 4:34 PM
To:	ale at ale.org
Subject:	RE: [ale] Conundrum for the day: file resource limit problem

Thanks for the suggestion.

I just put the command in /etc/profile (without discriminating which user I
want) and took it out of the user's .bash_profile to see if the idea would
work.  

Unfortunately, it didn't.

This is probably a deeper system problem...I'm still digging for clues.


-Ricardo
-----Original Message-----
From: Wandered Inn [mailto:esoteric at denali.atlnet.com]
To: ale at ale.org
Sent: Wednesday, August 15, 2001 4:20 PM
To: ale at ale.org
Subject: Re: [ale] Conundrum for the day: file resource limit problem


I believe that if you put it in /etc/profile, with a bit of scripting so
that only the user you want gets the upped ulimit, you'll be okay.

"Davis, Ricardo C." wrote:
> 
> Fellow ALEers,
> 
> I present today's conundrum:  modifying a user's maximum file size limit.
> 
> System:  PIII-600 running RH Linux 6.2 (kernel 2.2.19-6.2.1)
> 
> I attempted to have the limit set in the account's .bash_profile with the
> "ulimit -f 100000" command.  On logging in I get:
> 
>    ulimit: cannot raise limit: Operation not permitted
> 
> I noticed that this does not happen if I modify the root's .bash_profile.
I
> can't figure out how to get around this.  I've scanned RedHat's support
area
> and it was no help here.
> 
> Any ideas?
> 
> -Ricardo
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message
body.

--
Until later: Geoffrey		esoteric at denali.atlnet.com

"Great spirits have always found violent opposition from mediocre minds.
The latter cannot understand it when a man does not thoughtlessly submit
to hereditary prejudices but honestly and courageously uses his
intelligence." - Albert Einstein
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message
body.
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list