From owner-freebsd-questions Mon May 3 8:59:19 1999 Delivered-To: freebsd-questions@freebsd.org Received: from java.dpcsys.com (java.dpcsys.com [206.16.184.7]) by hub.freebsd.org (Postfix) with ESMTP id 8641315043 for ; Mon, 3 May 1999 08:59:13 -0700 (PDT) (envelope-from dan@dpcsys.com) Received: from localhost (dan@localhost) by java.dpcsys.com (8.9.1a/8.9.1) with SMTP id JAA25303; Mon, 3 May 1999 09:00:08 -0700 (PDT) Date: Mon, 3 May 1999 09:00:08 -0700 (PDT) From: Dan Busarow To: Graeme Tait Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Chroot'ed ftpd / Users with home directory not under /home In-Reply-To: <372DAC7D.736D@echidna.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 3 May 1999, Graeme Tait wrote: > I want to use the chroot'ed feature of ftpd to give a user control by ftp > of a portion of a web tree, while restricting them from seeing/changing > anything else on the server by ftp. > > I can do this by creating a new user with the home directory set to their > root point in the web tree. I have disabled telnet access to the account. > > > My question is, is this an acceptable procedure? Are there any > consequences to creating users with home directory not under /home? Yes, we do this all the time. No, there is no downside to having a user's home directory outside of /home. You should build a version of ftpd with built in ls. Set FTPD_INTERNAL_LS before running make in /usr/src/libexec/ftpd Otherwise you'll need to add bin/ls to their chroot'd home so they can see their files. Dan -- Dan Busarow 949 443 4172 Dana Point Communications, Inc. dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message