Sys: rssh

De MochilaWiki
Ir para navegaçãoIr para pesquisar
apt-get install -y sudo debianutils coreutils
mkdir -p /usr/local/sbin
cd /usr/local/sbin
wget http://www.fuschlberger.net/programs/ssh-scp-sftp-chroot-jail/make_chroot_jail.sh
chmod 700 /usr/local/sbin/make_chroot_jail.sh
make_chroot_jail.sh rafaelgomes /bin/chroot-shell /home/chroot
ln -s /home/chroot/home/rafaelgomes/pagina/ /var/www/saphie/rafaelgomes