From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Brandt Subject: Re: memory limit/quota per user Date: Fri, 18 Jun 2010 09:34:20 -0500 Message-ID: <201006180934.25657.alunduil@alunduil.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3960119.VEWyds3VD3"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-admin-owner@vger.kernel.org List-ID: To: Tharindu Rukshan Bamunuarachchi Cc: linux-admin@vger.kernel.org --nextPart3960119.VEWyds3VD3 Content-Type: Text/Plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable On Tuesday 08 June 2010 5:32:46 am Tharindu Rukshan Bamunuarachchi wrote: > Hello All, >=20 > Is it possible to limit memory quota per user (like disk quota) in=20 linux ? >=20 > AFAIK, RLIMIT_* (i.e. RSS, DATA) are applicable per process not per=20 user. >=20 > thankx a lot. > tharindu. >=20 >=20 > "those that can, do. Those that can=92t, complain." -- Linus > -- > To unsubscribe from this list: send the line "unsubscribe linux-admin"=20 in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html You can use the pam security limits feature. Simply check that the module is being loaded in pam.d: /etc/pam.d/system-auth:session required pam_limits.so=20 Then use the /etc/security/limits.conf file: soft|hard memlock Regards, Alex Brandt =2D-=20 Linux Administrator http://www.alunduil.com --nextPart3960119.VEWyds3VD3 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEABECAAYFAkwbg/EACgkQvpZ9jByxpSc3iQCfR6aJ1Q9oxLwtzU/muXPnNakk byMAnjqbD8TGE3I+eeqepoRoWBKq3YD6 =/lIX -----END PGP SIGNATURE----- --nextPart3960119.VEWyds3VD3--