From owner-freebsd-questions Wed Jul 3 13:23:56 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 4B45A37B400 for ; Wed, 3 Jul 2002 13:23:53 -0700 (PDT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0679A43E09 for ; Wed, 3 Jul 2002 13:23:47 -0700 (PDT) (envelope-from fbsd-q@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.5/8.12.5) with ESMTP id g63KOI0J037446; Wed, 3 Jul 2002 22:24:18 +0200 (CEST) (envelope-from stable@ei.bzerk.org) Received: (from stable@localhost) by ei.bzerk.org (8.12.5/8.12.5/Submit) id g63KOIDg037445; Wed, 3 Jul 2002 22:24:18 +0200 (CEST) Date: Wed, 3 Jul 2002 22:24:18 +0200 From: Ruben de Groot To: Peter Brezny Cc: freebsd-questions@FreeBSD.ORG Subject: Re: a default ftpchroot entry? Message-ID: <20020703222418.A37324@ei.bzerk.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from pbrezny@purplecat.net on Wed, Jul 03, 2002 at 02:41:54PM -0400 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 Wed, Jul 03, 2002 at 02:41:54PM -0400, Peter Brezny typed: > Is there a way to have a wildcard in the /etc/ftpchroot file in combination > with an 'exculded' list so that every new user is restricted to their > directory? I have a slightly modified ftpd that, when started with the option -c, only allows access to users who are in /etc/ftpchroot. If you want to try it you can download a patchfile for 4.5-4.6 from: http://www.xs4all.nl/~rubeng/files/ftpd.patch To install: cd /usr/src patch < /path/to/ftpd.patch cd libexec/ftpd make all install And edit your /etc/inetd.conf to start ftpd with the -c option. hope this helps. Ruben de Groot > > Or is there a way that I can automate adduser to place them in the ftpchroot > file automatically? > > Thanks, > > Peter Brezny > purplecat.net > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message