At 10:26 -0800 1998-02-26, Alan Su wrote: >Ossama Othman wrote (Thu, 26 Feb 1998 12:31:56 -0500 (EST) ): >|>Why are you trying to chroot to /bin/ls? The ftpd daemon automatically >|>does a chroot when someone logs in as "anonymous" or "ftp." Here is an >|>excerpt from the ftpd man page. Did you follow what it says? >|> > >Tony was trying to diagnose the problem, the same problem I'm having. >Namely, ls depends on libc (at least) and simply copying the library >to the ~ftp/lib directory doesn't work. The man page mentions nothing >about this, leading me to believe that it assumes that ls is >statically linked.
Here is the /home/ftp on my hamm system: (106) [EMAIL PROTECTED] [/home/ftp]# ls -lR total 5 d--x--x--x 2 root root 1024 Feb 17 11:15 bin/ d--x--x--x 2 root root 1024 Feb 17 11:14 etc/ d--x--x--x 2 root root 1024 Feb 17 11:32 lib/ dr-xr-xr-x 6 root root 1024 Feb 11 03:17 pub/ -rw-r--r-- 1 root root 487 Dec 30 10:59 welcome.msg bin: total 233 ---x--x--x 1 root root 45580 Feb 17 11:15 gzip ---x--x--x 1 root root 29428 Feb 17 11:15 ls ---x--x--x 1 root root 102380 Feb 17 11:15 tar ---x--x--x 1 root root 56156 Feb 17 11:15 zip etc: total 3 -r--r--r-- 1 root root 18 Feb 17 11:15 group -r--r--r-- 1 root root 44 Feb 17 11:15 passwd -r--r--r-- 1 root root 172 Feb 17 11:14 pathmsg lib: total 793 -r-xr-xr-x 1 root root 161959 Jan 21 10:30 ld-2.0.6.so lrwxrwxrwx 1 root root 11 Feb 17 11:32 ld-linux.so.2 -> ld-2.0.6.so -r-xr-xr-x 1 root root 643772 Jan 21 10:31 libc-2.0.6.so lrwxrwxrwx 1 root root 13 Feb 17 11:32 libc.so.6 -> libc-2.0.6.so [snip of the listing of pub] Output of ldd on /home/ftp/bin/*: (107) [EMAIL PROTECTED] [/home/ftp]# ldd bin/* bin/gzip: libc.so.6 => /lib/libc.so.6 (0x40010000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) bin/ls: libc.so.6 => /lib/libc.so.6 (0x40010000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) bin/tar: libc.so.6 => /lib/libc.so.6 (0x40010000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) bin/zip: libc.so.6 => /lib/libc.so.6 (0x40010000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) And yes, it does work. -- Joel "Espy" Klecker Debian GNU/Linux Developer <mailto:[EMAIL PROTECTED]> <http://espy.org/> <ftp://ftp.espy.org/pub> God shows his contempt for wealth by the kind of person He selects to receive it. -- Austin O'Malley (1858-1952) -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .