From owner-freebsd-isp Fri Jan 8 01:55:57 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA01133 for freebsd-isp-outgoing; Fri, 8 Jan 1999 01:55:57 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from backup.af.speednet.com.au (af.speednet.com.au [202.135.206.244]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA01127 for ; Fri, 8 Jan 1999 01:55:53 -0800 (PST) (envelope-from andyf@speednet.com.au) Received: from backup.zippynet.iol.net.au (backup.zippynet.iol.net.au [172.22.2.4]) by backup.af.speednet.com.au (8.9.1/8.9.1) with ESMTP id UAA07277; Fri, 8 Jan 1999 20:54:58 +1100 (EST) Date: Fri, 8 Jan 1999 20:54:58 +1100 (EST) From: Andy Farkas X-Sender: andyf@backup.zippynet.iol.net.au To: ryanm cc: "freebsd-isp@FreeBSD.ORG" Subject: Re: chroot ftp In-Reply-To: <369399BD.BE8E87B@accn.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 6 Jan 1999, ryanm wrote: > Is there a way to confgiure WU FTP to chroot to a user's home directory > upon logging in?? I do not want users to be able to go through my > directory structures and d/l files. If anyone can mail me back links > on doing this I would appreciate it greatly. Why not do it with the supplied ftpd?? >From 'man ftpd': 5. If the user name appears in the file /etc/ftpchroot, or the user is a member of a group with a group entry in this file, i.e. one prefixed with `@', the session's root will be changed to the user's login directory by chroot(2) as for an ``anonymous'' or ``ftp'' account (see next item). This facil- ity may also be triggered by enabling the boolean "ftp-chroot" capability in login.conf(5). However, the user must still supply a password. This feature is intended as a compromise between a fully anonymous account and a fully privileged ac- count. The account should also be set up as for an anonymous account. -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speed Internet Services http://www.speednet.com.au/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message