From owner-freebsd-questions Sun Oct 14 8:10:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail45.sdc1.sfba.home.com (femail45.sdc1.sfba.home.com [24.254.60.39]) by hub.freebsd.org (Postfix) with ESMTP id E2E7637B401 for ; Sun, 14 Oct 2001 08:10:14 -0700 (PDT) Received: from g3p1.peta.home ([24.176.255.95]) by femail45.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20011014151013.FRJ24413.femail45.sdc1.sfba.home.com@g3p1.peta.home> for ; Sun, 14 Oct 2001 08:10:13 -0700 Date: Sun, 14 Oct 2001 08:10:13 -0700 Subject: Re: /etc/ftpchroot doesn't work Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v472) From: sabine225@home.com To: questions@FreeBSD.ORG Content-Transfer-Encoding: 7bit In-Reply-To: <12a6aac12a51cb.12a51cb12a6aac@mbox.com.au> Message-Id: <912DBC3B-C0B5-11D5-B2B9-0050E4050F42@home.com> X-Mailer: Apple Mail (2.472) 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 > I have created the file /etc/ftpchroot andd added ftp users to it, is > there anything else I need to do to get it working? One thing but it probably isn't why it's not working for you. The path to users home directory needs to be set to something lower than "/" but it would have been normally anyway. vipw bill:UEl8KhAO5cMV.:1002:1002::0:0:bill:/home/bill:/bin/tcsh #bill can't go any higher than /home/bill if he's ftpchrooted. I just did it with bill as a test on a remote machine. I added the user bill. I ftped to the remote machine using bill. I could "cd /" and "ls" and I see the whole file system. When I created user bill I said no to the put files in new users home, there is only "." and ".." in bills home directory, i.e., no .login or anything. I added bill to /etc/ftpchroot. # cat ftpchroot bill # ls -l ftpchroot -rw-r--r-- 1 root wheel 11 Oct 14 09:45 ftpchroot Logged off bill and logged back on bill and could no longer move up out of /home/bill. If there was something I did long ago that enabled this I don't remember. But I don't think there was. Or in other words, "it should work." good luck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message