Chrooted SSH Link

Discussion in 'HOWTO-Related Questions' started by alexillsley, Apr 10, 2007.

  1. alexillsley

    alexillsley ISPConfig Developer

    ----- expired ----
     
    Last edited: Nov 15, 2010
  2. falko

    falko Super Moderator

    Yes, two lines below the link on the same page. ;)

    Code:
    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
            fi
    done
     
  3. alexillsley

    alexillsley ISPConfig Developer

    ----- expired ----
     
    Last edited: Nov 15, 2010

Share This Page