官网:https://olivier.sessink.nl/jailkit/
# yum install -y gcc
# wget https://olivier.sessink.nl/jailkit/jailkit-2.19.tar.gz
# tar xf jailkit-2.19.tar.gz
# cd jailkit-2.19/
# ./configure
# make && make install
# mkdir -p /home/jailkit
# cd /home/jailkit/
# jk_init -v /home/jailkit/ jk_lsh basicshell extendedshell
# useradd test
# passwd test
# jk_jailuser -j /home/jailkit/ -s /bin/bash test
home directory /home/test is not within /home/jailkit/, move the directory contents?
[Y]/[n]y
转载于:https://blog.51cto.com/magnosaurus/2071381