Hi! Here an example for Chrootssh build:
#patch/make tar xzf openssh-4.3.p1.tar.gz cd openssh-4.3p1 patch -p1 < osshChroot-4.3p1.diff ./configure --with-md5-password make make install #home mkdir /home/linux-chroot cd /home/linux-chroot mkdir bin dev home lib usr sbin etc usr/bin usr/lib #soft/lib cp /bin/bash /bin/cp /bin/ls /bin/mkdir /bin/mv /bin/rm /bin/rmdir /home/linux-chroot/bin cd lib ldd ../bin/bash [..] cp /lib/libncurses.so.5 . [..] ldd ../bin/mkdir [..] cp [..] [..] #build chroot anche check with ls chroot /home/linux-chroot/ /bin/bash #user ( add . before /home[..] for enable Chrootssh ) useradd -s /bin/bash -m -d /home/linux-chroot -c "linux-chroot" -g users linux-chroot vi /etc/passwd <--------------> linux-chroot:x:503:100:linux-chroot:/home/linux-chroot:/bin/sh <----- to -----> linux-chroot:x:503:100:linux-chroot:./home/linux-chroot:/bin/sh # set password passwd linux [..] #copy linux-chroot psw grep /etc/passwd -e "^linux" >> /home/linux-chroot/etc/passwd grep /etc/group -e .... >> /home/linux-chroot/etc/group Sim _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
