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 user. > > 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" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > 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 Then use the /etc/security/limits.conf file: <user> soft|hard memlock <value> Regards, Alex Brandt -- Linux Administrator http://www.alunduil.com
Attachment:
signature.asc
Description: This is a digitally signed message part.