标签:官网 bash use gcc add useradd with basic test
Jailkit监牢软件官网: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
标签:官网 bash use gcc add useradd with basic test
原文地址:http://blog.51cto.com/magnosaurus/2071381