From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,ca6cde4a4c600602 X-Google-Attributes: gid111c93,public From: Johannes Nix Subject: Re: stacksize limit Date: 2000/04/06 Message-ID: <8cikvh$2a9@news.Informatik.Uni-Oldenburg.DE>#1/1 X-Deja-AN: 607663170 Sender: jnix@scheat References: <38E2098D.16320B4A@sljus.lu.se> <8ci9cu$tbh@news.Informatik.Uni-Oldenburg.DE> <8cidb7$9a8$2@pulp.srv.ualberta.ca> Organization: Arbeitsgruppe Medizinische Physik Newsgroups: comp.os.linux.alpha michal@gortel.phys.ualberta.ca (Michal Jaegermann) writes: > > Check section 6.11, "The resource limits module", in your PAM > documentation. Most likely in /usr/doc/pam-... on your disk. > Few different formats of this document are available. > > If your system is using PAM then whatever has to do with logins should > be checked with PAM documentation first. > You are right. What I still don't understand is that it didn't seem to work with ssh altough there is a /etc/pam.d/ssh #%PAM-1.0 auth required /lib/security/pam_unix.so # set_secrpc auth required /lib/security/pam_nologin.so auth required /lib/security/pam_env.so account required /lib/security/pam_unix.so password required /lib/security/pam_unix.so # strict=false session required /lib/security/pam_unix.so none # trace or debug session required /lib/security/pam_limits.so which should work if I understand the whole thing well. Also, I am wondering why atd and crond don't use PAM, anybody could create a memory-hungry cron job and try crash the system. The last thing which I don't understand is that to lock memory using memlockall() in every case I need root privileges even is the limit is "unlimited" , so what the "max locked memory limit" is about ? (Would be practical to know for me because I work with real-time applications)? Johannes