Subject: Re: chrooted ftpd can't find /bin/ls
To: Port-i386 <port-i386@NetBSD.ORG>
From: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: port-i386
Date: 03/08/2000 14:32:44
Well, this not really i386 specific, but:

On Wed, Mar 08, 2000 at 02:30:17PM +0200, Jukka Marin wrote:
> I wanted to keep ftp users in their home directories, so I enabled chroot
> in /etc/ftpchroot.  Nice - but now "dir" no longer works in ftp because
> /bin/ls can't be found in the chrooted environment.

> Is there an easy solution to this problem?  Creating hardlinks in 20,000+
> home directories doesn't sound like an ideal solution.. ;) :(
No, it's not, but that's what I do on our 1.4.1 Server.
(But only ~110 Users :-)

BTW: The ftpd in current (and maybe -release?) has an "internal" ls -
no /bin/ls required in the chrooted areas.
-- 
Dies ist Thilos Unix Signature! Viel Spass damit.