-----BEGIN PGP SIGNED MESSAGE----- On Thu, 26 Aug 1999, John Pearson wrote:
> I believe that what has happened to you is that you are operating in a > chroot'd environment and that in that environment there is no /bin/ls to > run, so no directory appears. Try cd'ing to ftp's home directory and > copying bin/* to /home/shao/bin/ and lib/* to /home/shao/lib/. This > isn't necessary with proftpd because it has a built-in 'ls'. Why copy bin/* and lib/*, instead of only the programs and libraries needed. For example, $ cp /bin/ls ~ftp/bin $ ldd -d /bin/ls libc.so.6 => /lib/libc.so.6 (0x40006000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) $ cp /lib/libc.so.6 /lib/ld-linux.so.2 ~ftp/lib $ # be paranoid $ ldd /lib/libc.so.6 /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) $ ldd /lib/ld-linux.so.2 statically linked $ # ok, so no need to be paranoid. If there's any other programs that need to be copied, do basically the same thing. - -- finger for PGP public key. -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv iQCVAwUBN8YWtb7M/9WKZLW5AQGGFwP+OeOwXL7c+RR15u7ixUcnhYpYOdxNebqh i/HNusSesGleqv+12JUrCpOZ7JjwRbNP5po2Gm30rLs/VUxDjC7zwp7gWJFZzYsh 8rl+lGw+3nPJUddDcIntrqyoybtB4AQ+RYhlU2K5Pe2Msi6BFCRvw2cdBIT0NqlR P18rR8tRAfE= =IiwP -----END PGP SIGNATURE-----