# mkdir /home/jail # chown root:wheel /home/jail # jk_init -v /home/jail basicshell source file /lib/libnsl.so.1 does not exist source file /lib/libnss_compat.so.2 does not exist source file /lib/libnss_files.so.2 does not exist creating directory /home/jail/etc copying /etc/nsswitch.conf to /home/jail/etc/nsswitch.conf could not read source file /etc/nsswitch.conf creating directory /home/jail/home creating directory /home/jail/bin copying /bin/sh to /home/jail/bin/sh source file /bin/bash does not exist copying /bin/ls to /home/jail/bin/ls copying /bin/cat to /home/jail/bin/cat copying /bin/chmod to /home/jail/bin/chmod copying /bin/mkdir to /home/jail/bin/mkdir copying /bin/cp to /home/jail/bin/cp copying /bin/cpio to /home/jail/bin/cpio copying /bin/date to /home/jail/bin/date copying /bin/dd to /home/jail/bin/dd copying /bin/echo to /home/jail/bin/echo source file /bin/egrep does not exist source file /bin/false does not exist source file /bin/fgrep does not exist source file /bin/grep does not exist source file /bin/gunzip does not exist source file /bin/gzip does not exist copying /bin/ln to /home/jail/bin/ln source file /bin/mktemp does not exist source file /bin/more does not exist copying /bin/mv to /home/jail/bin/mv copying /bin/pwd to /home/jail/bin/pwd copying /bin/rm to /home/jail/bin/rm copying /bin/rmdir to /home/jail/bin/rmdir source file /bin/sed does not exist copying /bin/sleep to /home/jail/bin/sleep copying /bin/sync to /home/jail/bin/sync copying /bin/tar to /home/jail/bin/tar source file /bin/touch does not exist source file /bin/true does not exist source file /bin/uncompress does not exist source file /bin/zcat does not exist copying /etc/motd to /home/jail/etc/motd copying /etc/issue to /home/jail/etc/issue could not read source file /etc/issue copying /etc/bash.bashrc to /home/jail/etc/bash.bashrc could not read source file /etc/bash.bashrc copying /etc/bashrc to /home/jail/etc/bashrc could not read source file /etc/bashrc copying /etc/profile to /home/jail/etc/profile could not read source file /etc/profile # jk_init -v /home/jail editors source file /usr/bin/joe does not exist source file /usr/bin/nvi does not exist source file /usr/bin/nano does not exist source directory /etc/terminfo does not exist source directory /etc/joe does not exist # jk_init -v /home/jail extendedshell source file /lib/libnsl.so.1 does not exist source file /lib/libnss_compat.so.2 does not exist source file /lib/libnss_files.so.2 does not exist copying /etc/nsswitch.conf to /home/jail/etc/nsswitch.conf could not read source file /etc/nsswitch.conf /home/jail/bin/sh exists, specify --force to overwrite source file /bin/bash does not exist /home/jail/bin/ls exists, specify --force to overwrite /home/jail/bin/cat exists, specify --force to overwrite /home/jail/bin/chmod exists, specify --force to overwrite /home/jail/bin/mkdir exists, specify --force to overwrite /home/jail/bin/cp exists, specify --force to overwrite /home/jail/bin/cpio exists, specify --force to overwrite /home/jail/bin/date exists, specify --force to overwrite /home/jail/bin/dd exists, specify --force to overwrite /home/jail/bin/echo exists, specify --force to overwrite source file /bin/egrep does not exist source file /bin/false does not exist source file /bin/fgrep does not exist source file /bin/grep does not exist source file /bin/gunzip does not exist source file /bin/gzip does not exist /home/jail/bin/ln exists, specify --force to overwrite /home/jail/bin/ls exists, specify --force to overwrite /home/jail/bin/mkdir exists, specify --force to overwrite source file /bin/mktemp does not exist source file /bin/more does not exist /home/jail/bin/mv exists, specify --force to overwrite /home/jail/bin/pwd exists, specify --force to overwrite /home/jail/bin/rm exists, specify --force to overwrite /home/jail/bin/rmdir exists, specify --force to overwrite source file /bin/sed does not exist /home/jail/bin/sh exists, specify --force to overwrite /home/jail/bin/sleep exists, specify --force to overwrite /home/jail/bin/sync exists, specify --force to overwrite /home/jail/bin/tar exists, specify --force to overwrite source file /bin/touch does not exist source file /bin/true does not exist source file /bin/uncompress does not exist source file /bin/zcat does not exist /home/jail/etc/motd exists copying /etc/issue to /home/jail/etc/issue could not read source file /etc/issue copying /etc/bash.bashrc to /home/jail/etc/bash.bashrc could not read source file /etc/bash.bashrc copying /etc/bashrc to /home/jail/etc/bashrc could not read source file /etc/bashrc copying /etc/profile to /home/jail/etc/profile could not read source file /etc/profile source file /usr/bin/mc does not exist source file /usr/bin/mcedit does not exist source file /usr/bin/mcview does not exist source directory /etc/terminfo does not exist source directory /usr/share/terminfo does not exist source file /usr/bin/joe does not exist source file /usr/bin/nvi does not exist source file /usr/bin/nano does not exist source directory /etc/terminfo does not exist source directory /etc/joe does not exist creating directory /home/jail/usr creating directory /home/jail/usr/bin copying /usr/bin/awk to /home/jail/usr/bin/awk ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rlib ldd returns non existing library rtld source file /usr/bin/bzip2 does not exist source file /usr/bin/bunzip2 does not exist copying /usr/bin/less to /home/jail/usr/bin/less ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rlib ldd returns non existing library rtld copying /usr/bin/clear to /home/jail/usr/bin/clear ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rlib ldd returns non existing library rtld copying /usr/bin/cut to /home/jail/usr/bin/cut ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rtld copying /usr/bin/du to /home/jail/usr/bin/du ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rlib ldd returns non existing library rtld copying /usr/bin/find to /home/jail/usr/bin/find ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rtld copying /usr/bin/head to /home/jail/usr/bin/head ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rtld source file /usr/bin/md5sum does not exist copying /usr/bin/nice to /home/jail/usr/bin/nice ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rtld copying /usr/bin/sort to /home/jail/usr/bin/sort ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rtld source file /usr/bin/tac does not exist copying /usr/bin/tail to /home/jail/usr/bin/tail ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rtld copying /usr/bin/tr to /home/jail/usr/bin/tr ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rtld copying /usr/bin/wc to /home/jail/usr/bin/wc ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rlib ldd returns non existing library rtld source file /usr/bin/watch does not exist # jk_init -v /home/jail netutils source file /lib/libnss_dns.so.2 does not exist copying /etc/resolv.conf to /home/jail/etc/resolv.conf copying /etc/host.conf to /home/jail/etc/host.conf could not read source file /etc/host.conf copying /etc/hosts to /home/jail/etc/hosts copying /etc/protocols to /home/jail/etc/protocols source file /lib/libnss_dns.so.2 does not exist /home/jail/etc/resolv.conf exists copying /etc/host.conf to /home/jail/etc/host.conf could not read source file /etc/host.conf /home/jail/etc/hosts exists /home/jail/etc/protocols exists source file /lib/libnsl.so.1 does not exist source file /lib/libnss_compat.so.2 does not exist source file /lib/libnss_files.so.2 does not exist copying /etc/nsswitch.conf to /home/jail/etc/nsswitch.conf could not read source file /etc/nsswitch.conf copying /usr/bin/ssh to /home/jail/usr/bin/ssh ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rlib ldd returns non existing library rlib ldd returns non existing library rlib ldd returns non existing library rlib ldd returns non existing library rlib ldd returns non existing library rtld creating directory /home/jail/dev creating device /home/jail/dev/urandom creating device /home/jail/dev/tty source file /lib/libnss_dns.so.2 does not exist /home/jail/etc/resolv.conf exists copying /etc/host.conf to /home/jail/etc/host.conf could not read source file /etc/host.conf /home/jail/etc/hosts exists /home/jail/etc/protocols exists source file /lib/libnsl.so.1 does not exist source file /lib/libnss_compat.so.2 does not exist source file /lib/libnss_files.so.2 does not exist copying /etc/nsswitch.conf to /home/jail/etc/nsswitch.conf could not read source file /etc/nsswitch.conf source file /usr/lib/sftp-server does not exist source file /usr/libexec/openssh/sftp-server does not exist source file /usr/lib/misc/sftp-server does not exist device /home/jail/dev/urandom does exist already source file /lib/libnss_dns.so.2 does not exist /home/jail/etc/resolv.conf exists copying /etc/host.conf to /home/jail/etc/host.conf could not read source file /etc/host.conf /home/jail/etc/hosts exists /home/jail/etc/protocols exists source file /lib/libnsl.so.1 does not exist source file /lib/libnss_compat.so.2 does not exist source file /lib/libnss_files.so.2 does not exist copying /etc/nsswitch.conf to /home/jail/etc/nsswitch.conf could not read source file /etc/nsswitch.conf copying /usr/bin/scp to /home/jail/usr/bin/scp ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rtld device /home/jail/dev/urandom does exist already source file /usr/bin/wget does not exist copying /usr/bin/lynx to /home/jail/usr/bin/lynx ldd returns non existing library exe ldd returns non existing library rlib ldd returns non existing library rlib ldd returns non existing library rlib ldd returns non existing library rlib ldd returns non existing library rtld copying /usr/bin/ftp to /home/jail/usr/bin/ftp source file /usr/bin/host does not exist source file /usr/bin/rsync does not exist source file /usr/bin/smbclient does not exist # jk_init -v /home/jail ssh source file /lib/libnss_dns.so.2 does not exist /home/jail/etc/resolv.conf exists copying /etc/host.conf to /home/jail/etc/host.conf could not read source file /etc/host.conf /home/jail/etc/hosts exists /home/jail/etc/protocols exists source file /lib/libnsl.so.1 does not exist source file /lib/libnss_compat.so.2 does not exist source file /lib/libnss_files.so.2 does not exist copying /etc/nsswitch.conf to /home/jail/etc/nsswitch.conf could not read source file /etc/nsswitch.conf /home/jail/usr/bin/ssh exists, specify --force to overwrite device /home/jail/dev/urandom does exist already device /home/jail/dev/tty does exist already # jk_init -v /home/jail sftp source file /lib/libnss_dns.so.2 does not exist /home/jail/etc/resolv.conf exists copying /etc/host.conf to /home/jail/etc/host.conf could not read source file /etc/host.conf /home/jail/etc/hosts exists /home/jail/etc/protocols exists source file /lib/libnsl.so.1 does not exist source file /lib/libnss_compat.so.2 does not exist source file /lib/libnss_files.so.2 does not exist copying /etc/nsswitch.conf to /home/jail/etc/nsswitch.conf could not read source file /etc/nsswitch.conf source file /usr/lib/sftp-server does not exist source file /usr/libexec/openssh/sftp-server does not exist source file /usr/lib/misc/sftp-server does not exist device /home/jail/dev/urandom does exist already # jk_init -v /home/jail scp source file /lib/libnss_dns.so.2 does not exist /home/jail/etc/resolv.conf exists copying /etc/host.conf to /home/jail/etc/host.conf could not read source file /etc/host.conf /home/jail/etc/hosts exists /home/jail/etc/protocols exists source file /lib/libnsl.so.1 does not exist source file /lib/libnss_compat.so.2 does not exist source file /lib/libnss_files.so.2 does not exist copying /etc/nsswitch.conf to /home/jail/etc/nsswitch.conf could not read source file /etc/nsswitch.conf /home/jail/usr/bin/scp exists, specify --force to overwrite device /home/jail/dev/urandom does exist already # jk_jailuser -m -j /home/jail jane invalid shell, /home/jail/usr/sbin/jk_lsh does not exist enter jail directory: