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: michal@gortel.phys.ualberta.ca (Michal Jaegermann) Subject: Re: stacksize limit Date: 2000/04/07 Message-ID: <8ckpog$ctk$1@pulp.srv.ualberta.ca>#1/1 X-Deja-AN: 608003511 References: <38E2098D.16320B4A@sljus.lu.se> <8ci9cu$tbh@news.Informatik.Uni-Oldenburg.DE> <8cidb7$9a8$2@pulp.srv.ualberta.ca> <8cikvh$2a9@news.Informatik.Uni-Oldenburg.DE> Organization: Disorganized Bits Reply-To: michal@phys.ualberta.ca Newsgroups: comp.os.linux.alpha Johannes Nix (Johannes.Nix@mail.uni-oldenburg.de) wrote: : michal@gortel.phys.ualberta.ca (Michal Jaegermann) writes: : > : > Check section 6.11, "The resource limits module", in your PAM : > documentation. : 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 .... : session required /lib/security/pam_limits.so : which should work if I understand the whole thing well. I am afraid that I do not know much more than documentation says. Maybe there are some bugs somewhere? There for sure were bugs in PAM libraries which came with RH 6.0 distribution. Also which ssh is that. 'openssh'? It is supposed to work correctly with PAM but maybe something was forgotten. As usual sources are available to check that out. : 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. If you worried about that you would have to run cron and at jobs via a wrapper which does '#!/bin/sh -login'. This is an untested guess but this is a login shell which sets limts. : 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 ? No idea. Bug report time? Michal