[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] Jailkit on CentOS 5.8 / Amazon EC2 / RightScale

From: SUN, Boyuan
Subject: Re: [Jailkit-users] Jailkit on CentOS 5.8 / Amazon EC2 / RightScale
Date: Sat, 22 Sep 2012 22:59:17 +0800

try this in installation:
wget http://olivier.sessink.nl/jailkit/jailkit-2.15.tar.bz2
tar jxf jailkit-2.15.tar.bz2
cd jailkit-2.15
sed -i '41,42s/lpthread/pthread/g' src/Makefile
make install 
and this afterwards: 
cp -r /lib/x86_64-linux-gnu/* /home/jail/lib/x86_64-linux-gnu/ 

On Sat, Sep 22, 2012 at 10:18 PM, John McGowan <address@hidden> wrote:
I've been struggling with getting a chrooted user environment on an
Amazon ec2 instance with a Centos 5.8 image on the RightScale
management platform.

At first I spent a bunch of time trying to get the
"make_chroot_jail.sh" script to work.  That wasn't going so well so I
decided to start from scratch with jailkit.  It seemed like it might
be a more recently maintained solution.

So far I've gone through the simple "test" setup, with the exception
of a couple warnings about directory ownership, and a deprecated
jk_addjailuser call, everything went smoothly.

I added my public key to the jailed users .ssh/authorized_keys file
and set proper ownershipt/permissions on those files.  But when I try
to login, it fails, and there's hardly anything in /var/log/messages
or /var/log/secure.

When i try to login, all i see in the secure log is...

Sep 22 10:13:51 ip-10-90-242-163 sshd[1589]: Connection closed by

Absolutely nothing shows up in /var/log/messages

My ultimate goal here is to be able to provide users with
scp/rsync/ssh access to a subset of the filesystem.

Any advice on how I can debug this or anybody know of any caveats in
working in the environment I'm in?


Jailkit-users mailing list

SUN, Boyuan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]