Web Hosting Talk







View Full Version : limitations


clocker1996
06-15-2002, 11:27 PM
Hi,

I was wondering, is it possible to make it so the username "bob" on my linux box is limited to using only ___ of memory?

is there a file i can edit for this?

what about cpu?

i have never heard of anything like that, although it might come in handy.

taz0
06-16-2002, 12:48 AM
please check man login.conf

clocker1996
06-16-2002, 03:24 AM
Uhm, there is no login.conf on redhat 7.2 atleast

no1v2
06-16-2002, 08:29 AM
/etc/login.conf is a very nice feature of FreeBSD. Now that I think about it, I it's probably a BSD feature, just FreeBSD is the only one I've used.

FreeBSD's login.conf man page (http://www.gsp.com/cgi-bin/man.cgi?section=5&topic=login.conf) (If it's on the web, Google always seems to know it ;))

priyadi
06-16-2002, 10:01 AM
Under Linux, try /etc/security/limits.conf.

taz0
06-16-2002, 12:46 PM
Sorry for being a FreeBSD addict. :) 4.6 is out now.
Originally posted by no1v2
/etc/login.conf is a very nice feature of FreeBSD. Now that I think about it, I it's probably a BSD feature, just FreeBSD is the only one I've used.

FreeBSD's login.conf man page (http://www.gsp.com/cgi-bin/man.cgi?section=5&topic=login.conf) (If it's on the web, Google always seems to know it ;))

rfxn
06-16-2002, 07:38 PM
/etc/secuirty/limits.conf is a PAM enabled feature, if not enabled via PAM prior to editing limits.conf then your changes will not take effect in the least.

Refer to the below link for more information on setting up PAM resource limiting:
http://www.webhostingtalk.com/showthread.php?s=&threadid=45887