I would like to jail my users and found this(seemingly) great tutorial: http://www.technicalarticles.org/index. ... hroot_Jail
I created a test server to install and get it down so I can do it quickly on my production server. The server was a minimum install from a CentOS 4.4 ServerCD. I have followed the following commands:
- Code: Select all
tar -xvf openssh-4.2p1-chroot.tar.gz
yum install gcc
tar xvfz zlib-1.2.3.tar.gz
rpm -Uhv http://apt.sw.be/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
yum update openssl
each time I try to configure I get more and more dependencies I'm missing. First GCC then zlib and now libcrypto. I have the newest version of openssl and I have the following files in /lib:
libcrypto.so.4(link file to ... nowhere?)
I cant find a way to install this file and I'm sure that even if i can get it installed that there will be more that I will have problems with. Is there a better tutorial that I just cant seem to find? Is there a better way to install the openssh chroot(rpm dl or in a repo somewhere?)?
I don't need anything fancy because I only have a few users, but I'de just like to be able to jail these few users to their home dir and still allow them to login through sftp(i have them all using winSCP)
p.s. Ive tried jailkit and had a lot of problems with it. I couldnt find any centos/rhel specific install instructions and their website seems outdated with what the commands actually do.