From owner-freebsd-questions Mon Sep 30 16:57:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A7C637B42B for ; Mon, 30 Sep 2002 16:57:23 -0700 (PDT) Received: from ns1.webwarrior.net (overlord-host99.dsl.visi.com [209.98.86.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BB4243E65 for ; Mon, 30 Sep 2002 16:57:22 -0700 (PDT) (envelope-from friar_josh@webwarrior.net) Received: by ns1.webwarrior.net (Postfix, from userid 1003) id 163CA2528D; Tue, 1 Oct 2002 00:58:24 -0500 (CDT) Date: Tue, 1 Oct 2002 00:58:24 -0500 From: Josh Paetzel To: Socketd Cc: freebsd-questions@freebsd.org Subject: Re: Need some ftp access advice Message-ID: <20021001055824.GA21046@ns1.webwarrior.net> References: <20020930.23255500.2969120449@rafter.> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020930.23255500.2969120449@rafter.> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Sep 30, 2002 at 11:25:55PM +0000, Socketd wrote: > Hi again > > I am running a ftp server, I don't allow anonymous logins and I chroot > all my users. > The problem is that I want to hold the above settings, but still give all > my users a public/joined up- and download dir, how do I do that? > > Br > socketd > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message One possible way would be to chroot them to /home/ftp and then make the common dir and the home dirs branch from there. I don't know off the top of my head if you can symlink out of a chrooted environment, I'm thinking you can't, but if you can then that is another option. So you'd have /home/ftp/upload, /home/ftp/download, both set to read write and execute for members of the group ftp, then the private dirs would be /home/ftp/users/someuser, where users is read write execute to the ftp group, and someuser is read write and execute only to the user someuser. Josh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message