Re: memory limit/quota per user

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

On Tuesday 08 June 2010 5:32:46 am Tharindu Rukshan Bamunuarachchi wrote:
> Hello All,
> Is it possible to limit memory quota per user (like disk quota) in 
linux ?
> AFAIK, RLIMIT_* (i.e. RSS, DATA) are applicable per process not per 
> thankx a lot.
> tharindu.
> "those that can, do. Those that can’t, complain." -- Linus
> --
> To unsubscribe from this list: send the line "unsubscribe linux-admin" 
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at

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 

Then use the /etc/security/limits.conf file:
<user> soft|hard memlock <value>


Alex Brandt

Linux Administrator

Attachment: signature.asc
Description: This is a digitally signed message part.

[Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Linux Resources]     [Fedora Users]

Add to Google Powered by Linux