Monday, December 29, 2014

how to create jail dirctory with jailkit

1- download jailkit and install
root@mypc:/# wget http://olivier.sessink.nl/jailkit/jailkit-2.17.tar.bz2
root@mypc:/# bzip2 jailkit-2.17.tar.bz2
root@mypc:/# tar xvf jailkit-2.17.tar
root@mypc:/# cd jailkit-2.17
root@mypc:/# ./configure
root@mypc:/# make
root@mypc:/# make install

2- create jail directory with basic shell

root@mypc:/# mkdir bshell
root@mypc:/# jk_init /home/bshell/ basicshel

3- start chroot the directory

root@mypc:/# chroot /home/bshell


-- so how it is chrooted to the directory ---

No comments:

Post a Comment