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

Re: The stack and digital unix binaries



> > If you don't like the hard limit, then you can raise it by editing
> > /etc/security/limits.conf (may be a RedHat-only hack, I dunno.)
> 
> I don't know what this does on your system but on my RH 5.2 systems
> it doesn't do squat.  This file is part of pam, and looks to me to
> be a placeholder for some future functionality.

Me and my big mouth.

I recompiled my kernels to up it. Then I poked around and had never
tried /etc/security/limits.conf

The following hack does work; I found out about it after I recompiled.

> Log in as root and edit a file called /etc/initscript.  On my machine
> this
> script did not already exist.  In it put the following lines:
> #
> ulimit -Hs unlimited
> ulimit -Ss unlimited
> 
> eval exec "$4"
> 
> Then issue "chmod +x /etc/initscript" and reboot the machine.  Logging
> in
> either as root or an unpriviledged [sic] user should result in
> effectively
> unlimited stack memory (on the order of 2 GB).



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