From owner-freebsd-stable Thu Jun 24 16:19:46 1999 Delivered-To: freebsd-stable@freebsd.org Received: from mercury.gfit.net (ns.gfit.net [209.41.124.90]) by hub.freebsd.org (Postfix) with ESMTP id 7AD1E14CF0 for ; Thu, 24 Jun 1999 16:19:40 -0700 (PDT) (envelope-from tom@embt.com) Received: from paranor.embt.net (timembt.iinc.com [206.67.169.229]) by mercury.gfit.net (8.8.8/8.8.8) with SMTP id SAA03243; Thu, 24 Jun 1999 18:19:49 -0500 (CDT) (envelope-from tom@embt.com) Message-Id: <3.0.3.32.19990624191928.00aab0cc@mail.embt.com> X-Sender: tembt@mail.embt.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Thu, 24 Jun 1999 19:19:28 -0400 To: mwlucas@exceptionet.com From: Tom Embt Subject: Re: ftpd: some clients can list, some cannot Cc: freebsd-stable@freebsd.org In-Reply-To: <199906242207.SAA09263@easeway.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 06:07 PM 6/24/99 -0400, you wrote: >Hello, > >I have a strange problem with a 3.2-stable ftpd, cvsuped last Monday. > >I've compiled ftpd with INTERNAL_LS=true. When a user is listed in >/etc/ftpchroot, they may or may not be able to list the contents of their >home directory. > >The -stable and -current FreeBSD client cannot list the directory. > >wsftp cannot list the directory. > >Oddly, OSF1 can, in particular (from uname -a): > >OSF1 saturn2.acs.oakland.edu V3.2 148 alpha > >Now, I want the user to be able to list their home directory, but not get >out of it. Obviously, there's something I'm missing that would generate >consistent results. Any advice would be appreciated. > >Thanks, >==ml Lately anytime I open my mouth on a mailing list it is in error, so take this with a grain of salt... AFAIK, there are five files which are "supposed" to be available in a chrooted environment. /bin/ls /bin/date /etc/group /etc/pwd.db /etc/passwd Compiling with INTERNAL_LS took care of the first one, but it is possible that some clients need some/all of the other files. If you're interested I can describe the layout of hardlinks and symlinks I use to make these files available. There's a good chance it's not the Right Way(tm) to do it, but it has worked for me. Tom Embt tom@embt.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message