From owner-freebsd-questions@FreeBSD.ORG Wed Jul 9 08:32:31 2003 Return-Path: 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 8DB5A37B404 for ; Wed, 9 Jul 2003 08:32:31 -0700 (PDT) Received: from daedalus.jonze.com (daedalus.jonze.com [213.210.24.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1A8D43FB1 for ; Wed, 9 Jul 2003 08:32:28 -0700 (PDT) (envelope-from richard@jonze.com) Received: from daedalus.jonze.com (richard@localhost [127.0.0.1]) by daedalus.jonze.com (8.12.9/8.12.9) with ESMTP id h69FWQiZ027143 for ; Wed, 9 Jul 2003 16:32:26 +0100 (BST) (envelope-from richard@jonze.com) Received: (from richard@localhost) by daedalus.jonze.com (8.12.9/8.12.9/Submit) id h69FWQfo027142 for questions@freebsd.org; Wed, 9 Jul 2003 16:32:26 +0100 (BST) X-Authentication-Warning: daedalus.jonze.com: richard set sender to richard@jonze.com using -f Date: Wed, 9 Jul 2003 16:32:26 +0100 From: Richard Jones To: questions@freebsd.org Message-ID: <20030709153226.GA27102@daedalus.jonze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: ftpchroot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 15:32:31 -0000 Hi, I'm trying to get ftpchroot to work and having problems: In the ftpchroot man page it states that a user (non-anonymous) can be chrooted by specifying the username and directory as so user ftp_dir if there is no leading "/" then the directory is relative to the user's home directory. The problem is that "user ftp_dir" works, but "user /home/user/ftp_dir" does not, giving an error "421 Service not available, remote server has closed connection". There's nothing in syslog or /var/log/xfer.log to indicate why, just "ftpd exited", and "FTP LOGIN FROM ..." I'm using FreeBSD-5.1 RELEASE, can anyone help? Richard Jones -- Richard Jones http://www.jonze.com