From owner-freebsd-hackers Fri Mar 31 8:17:41 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from kronos.networkrichmond.com (kronos.alcnet.com [63.69.28.22]) by hub.freebsd.org (Postfix) with ESMTP id C601937BB6D for ; Fri, 31 Mar 2000 08:17:36 -0800 (PST) (envelope-from kbyanc@posi.net) X-Provider: Network Richmond, LLC. http://www.networkrichmond.com/ Received: from localhost (kbyanc@localhost) by kronos.networkrichmond.com (8.9.3/8.9.3/antispam) with ESMTP id LAA89753; Fri, 31 Mar 2000 11:17:32 -0500 (EST) Date: Fri, 31 Mar 2000 11:17:32 -0500 (EST) From: Kelly Yancey X-Sender: kbyanc@kronos.networkrichmond.com To: sdf dsg Cc: hackers@FreeBSD.ORG Subject: Re: FTP server In-Reply-To: <20000331160805.36797.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 31 Mar 2000, sdf dsg wrote: > after i have looked arround i cant find where to restrict ftp users to their > home dir only, pleas help me!!!!! The man pages are always good places to start. See ftpd(8), particularly the paragraph: 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. Personally, I'm fond of putting ftp-chroot in login.conf for a user class specific to FTP users, but your mileage may vary. Kelly -- Kelly Yancey - kbyanc@posi.net - Richmond, VA Analyst / E-business Development, Bell Industries http://www.bellind.com/ Maintainer, BSD Driver Database http://www.posi.net/freebsd/drivers/ Coordinator, Team FreeBSD http://www.posi.net/freebsd/Team-FreeBSD/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message