From owner-freebsd-questions Mon Jun 23 16:53:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA08735 for questions-outgoing; Mon, 23 Jun 1997 16:53:10 -0700 (PDT) Received: from helbig.informatik.ba-stuttgart.de (helbig.informatik.ba-stuttgart.de [141.31.166.22]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA08725 for ; Mon, 23 Jun 1997 16:53:05 -0700 (PDT) Received: (from helbig@localhost) by helbig.informatik.ba-stuttgart.de (8.8.5/8.8.5) id BAA00227 for FreeBSD-questions@FreeBSD.org; Tue, 24 Jun 1997 01:53:00 +0200 (MET DST) From: Wolfgang Helbig Message-Id: <199706232353.BAA00227@helbig.informatik.ba-stuttgart.de> Subject: Re: FTP Users Accounts (fwd) To: FreeBSD-questions@FreeBSD.org Date: Tue, 24 Jun 1997 01:53:00 +0200 (MET DST) X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk ----- Forwarded message from helbig ----- >From helbig Mon Jun 23 23:43:58 1997 Subject: Re: FTP Users Accounts In-Reply-To: <33AE4367.4B69@www.petrat.com> from Marcus Zafarano at "Jun 23, 97 02:35:35 am" To: marcusz@petrat.com (Marcus Zafarano) Date: Mon, 23 Jun 1997 23:43:58 +0200 (MET DST) Cc: helbig@MX.BA-Stuttgart.De X-Mailer: ELM [version 2.4ME+ PL30 (25)] Content-Length: 990 > Wolfgang Helbig wrote: > > > > > Hi: > > > > > > I need to be able to setup users on ftp under /users/????, but then not > > > have them be able to go out of their home directory. Can I do this with > > > ftp on FreeBSD. I have setup all the ftpusers, etc files, but I get past > > > my home directory. > > > > How about man ftpd? Edit the file /etc/ftpchroot. > > > > > > Can you help me? > > > > Hope so! > > > > > > thnks > > wlcm > > > > Wolfgang > > > > > > -mez > > > > > I have edited this file ftpchroot, but all I have done is added a name. > Is there more? No. If you have done that, your home directory will be '/' after ftp-login, and you'll have a hard time escaping this directory sub tree. BTW, many commands like ``ls'' won't work if they are not in your sub-tree, i. e. you'll need a bin directory in every home directory of your users. Symlinks outside your tree won't work either! Wolfgang. PS: Your reply address is wrong, the mail sent to you bounces back! ----- End of forwarded message from helbig -----