Jeff Weisberg on Thu, 5 Dec 2002 13:30:07 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] System Resource


| > if [ x"id -u" = x"1000" ]; then
| >       ulimit -t 1024
| > fi
| 
| Er, maybe not.
| 
| The documented behavior of ulimit shell functions is that only the
| super-user can increase ulimit values, but I just lowered and then
| increased my own as a regular user.
| 
| I'm sure I knew the right way to do this at some point...

a regular user can increase the soft limits up to the hard limits,
or decrease the hard and soft limits.

only the super-user can raise the hard limits

by default, ulimit adjusts the soft limits.
passing the '-H' flag sets the hard limits.

so, in your example, add the '-H' flag, and
you won't be able to increase it later.


	--jeff

_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug