Thread: Chrooted SSH
View Single Post
Old 14th April 2006, 22:49
linuxuser1 linuxuser1 is offline
Join Date: Oct 2005
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chrooted SSH

Hi Falko,

I am using your write up
to configure my server and am getting this error:

mailx:/home/chroot# APPS="/bin/bash /bin/ls /bin/mkdir /bin/mv /bin/pwd /bin/rm /usr/bin/id /usr/bin/ssh /bin/ping /usr/bin/dircolors"for prog in $APPS; do cp $prog ./$prog # obtain a list of related libraries ldd $prog > /dev/null if [ "$?" = 0 ] ; then LIBS=`ldd $prog | awk '{ print $3 }'` for l in $LIBS; do mkdir -p ./`dirname $l` > /dev/null 2>&1 cp $l ./$l done fidone
-bash: syntax error near unexpected token `do'

Reply With Quote
Sponsored Links