5

How to setup git with jailed user

view full story
linux-howto

http://serverfault.com – I have performed below steps to setup jailed user here username is test3 mkdir -p /home/test3/{dev,etc,lib,usr,bin} mkdir -p /home/test3/usr/bin chown root.test3 /home/test3 mknod -m 666 /home/test3/dev/null c 1 3 cd /home/test3/etc cp /etc/ld.so.cache . cp /etc/ld.so.conf . cp /etc/nsswitch.conf . cp /etc/hosts . cd /home/test/usr/bin cp /bin/ls . cp /bin/bash . cd /sbin wget -O l2chroot http://www.cyberciti.biz/files/lighttpd/l2chroot.txt chmod +x l2chroot dit the l2chroot file and change BASE=”/webroot” to BASE=”/home/test”. This tells l2chroot where your jail is located so it c (HowTos)