From owner-freebsd-questions@FreeBSD.ORG Mon May 22 14:53:24 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 9B48716B24C for ; Mon, 22 May 2006 14:53:24 +0000 (UTC) (envelope-from e.schuele@computer.org) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [63.240.77.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE2F343D5D for ; Mon, 22 May 2006 14:53:15 +0000 (GMT) (envelope-from e.schuele@computer.org) Received: from [208.206.151.59] (host59.gtisd.com[208.206.151.59]) by comcast.net (sccrmhc12) with ESMTP id <20060522145314012004l4u8e>; Mon, 22 May 2006 14:53:14 +0000 Message-ID: <4471D059.30600@computer.org> Date: Mon, 22 May 2006 09:53:13 -0500 From: Eric Schuele User-Agent: Thunderbird 1.5.0.2 (X11/20060426) MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: FTP and chroot.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 May 2006 14:53:33 -0000 Hello, For the life of me I can not get any user who FTPs into my box to be chroot'ed to a particular directory. I'm sure this should be a simple thing to do. I have setup an ~/ftp directory for each user and would like their ftp session to be chroot'ed to it. But I can't seem to get it working. Here is what I presently have setup... rc.conf ---- ftpd_enable="YES" ftpd_flags="-S -ll" ftpd.conf ---- chroot all /home/%u/ftp ftpusers ---- ftpchroot ---- @ftp All users which I grant FTP access to are members of the ftp group. They can FTP into the box, but the root dir is their home dir. They are chroot'ed to their home dir... not ~/ftp. I've tried various things in all of the config files to change it to this subdir, to no avail. Thanks, -- Regards, Eric