[1458] in linux-security and linux-alert archive
[linux-security] Re: Re: ssh and limits on resources
daemon@ATHENA.MIT.EDU (Horvath Andras)
Sun Feb 23 11:11:22 1997
Date: Sun, 23 Feb 1997 13:28:43 +0100 (MET)
From: Horvath Andras <raas@balu.sch.bme.hu>
To: linux-security@redhat.com
In-Reply-To: <Pine.LNX.3.95.970222114850.161N-100000@inorganic5.fdt.net>
Resent-From: linux-security@redhat.com
Reply-To: linux-security@redhat.com
Hi!
Ssh does *not* do the login procedure (I mean via /bin/login)! The only
solution I know is to change the users' shell to a program which sets the
limits, then starts the shell itself. This should not be a shell script!
I use restrict, which can be found at, for example
ftp://thunder.sch.bme.hu/pub/linux/restrict-0.9.2-1.i386.rpm (yes I too
dislike rpm's but that's how I found it)
This program moves all shells listed in /etc/shells to /bin/shells, and
makes symlinks to itself in their place.
regards,
raas