Thread: Chrooted SSH
View Single Post
  #1  
Old 14th April 2006, 21:49
linuxuser1 linuxuser1 is offline
Member
 
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 http://www.howtoforge.com/book/print/929
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'
mailx:/home/chroot#

Thanks.
Reply With Quote
Sponsored Links