[100582] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: how to limit the memory an user can use

daemon@ATHENA.MIT.EDU (Kevin Smith)
Sat Nov 21 23:53:02 1998

Date: Sat, 21 Nov 1998 22:58:10 -0600 (EST)
From: Kevin Smith <kevin@mtsu.edu>
To: RedHat Mailing List <redhat-list@redhat.com>
In-Reply-To: <Pine.LNX.4.04.9811201709030.10334-100000@lspvs.sorosis.ro>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Fri, 20 Nov 1998, Andrei wrote:

>         (shadow980724)
> 
> 	given that :
> 	R: max resident set size (KB) [_no effect on Linux 2.0.x_]
> and setting the S in /etc/limits has no effect how can i limit the memory
> an ordinary user can use ?
> 	I tryed on more systems ( rh5.1, and rh5.2) and nothing... i added
> the HAVE_ULIMIT flag with no result ... tryed shadow980724 and 971215.
> 
> 	How can this be done ?

Make the appropriate modifications to /etc/security/limits.conf
and then add the following into /etc/pam.d/login:

session    required	/lib/security/pam_limits.so

Put it at the bottom with the other session options, but that will
make enforce the limits on any user that logs in...

-----
Kevin Smith
kevin@mtsu.edu

You are in a maze of little twisting passages, all alike.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post