3 possibilities:
1)
chroot directory given in your /etc/passwd file for the guest account must be to the directory where your ~/bin directory is located. That is, if your chroot directory is /home/user/ and your /etc/passwd account is:
user:x:500:500:guest:/home/./user:/etc/ftponly
it will not work, as the ~/bin directory is not under the chrooted directory. It must be set as follows.
user:x:500:500:guest:/home/user/./:/etc/ftponly
2)
find "ls" source somewhere (for example, GNU fileutils source package from
ftp://gnu.org ), and compile it statically under your chroot'ed environment.
3)
The other option is, as you mentioned find out what libraries ls wants, and make copies of them in ~lib under your chroot'ed environment.
As Neo said please post you configuration stuff so that others may benefit from it!
HTH
[Edited by mib on 05-09-2001 at 03:38 PM]