From owner-freebsd-questions Mon Apr 5 21:42:45 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id D780314CA5 for ; Mon, 5 Apr 1999 21:42:43 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id AAA22415; Tue, 6 Apr 1999 00:40:54 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199904060440.AAA22415@cc942873-a.ewndsr1.nj.home.com> Subject: Re: root director for FTP users In-Reply-To: <37096EE2.C1D0E639@lvdi.net> from notme at "Apr 5, 99 07:18:10 pm" To: notme@lvdi.net (notme) Date: Tue, 6 Apr 1999 00:40:54 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG notme wrote, > Hi, > I am wondering if there is a way to change the root director > of the a FTP user to /var/ftp, and make it so that he/she cannot > change to a higher hierachy directory. (i.e. /var is not permitted) > > Chroot somehow doesn't work unless the ftp user is su... and I > couldn't figure out why... 'Unless the ftp user is su...' I'm not sure what that means, but setting things up as you describe should be a breeze. Just make the home directory of the anonymous ftp user (ftp) '/var/ftp' and then set up the account as described in 'man ftpd'. Or are you trying to do something more complicated? -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message