Re: setting memory limits for ssh and xdm logins
Ethan Benson <erbenson@alaska.net> writes:
> On Mon, Oct 02, 2000 at 10:36:39PM -0400, Dan Christensen wrote:
> > I have put limits in /etc/security/limits.conf to prevent a user from
> > bringing down my machine by using up all the memory, and I have
> > uncommented the line
> >
> > session required pam_limits.so
> >
> > in /etc/pam.d/login so that this is read. When I log in using
> > a virtual terminal this works perfectly, but these settings are
> > ignored by both ssh and xdm logins.
> >
> > Moreover, the tcsh limit command and the bash ulimit command are
> > also ignored, in all cases.
>
> sprinkle ulimit commands in /etc/X11/Xsession
Ahh, you are right, that solves the xdm problem. ulimit -v is what I
wanted. I missed this because I use tcsh which doesn't seem to have
an analog of this limit using its built-in limit command. Is there a
way to set a limit on virtual memory use within tcsh?
And is there a natural place to put a ulimit -v command for ssh logins?
Somewhere that can't be overridden by users and which works for users
who use tcsh?
Thanks for the help!
Dan
--
Dan Christensen
jdc@julian.uwo.ca
Reply to: