From owner-freebsd-questions@FreeBSD.ORG Fri Jun 3 20:50:58 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F4A816A41C for ; Fri, 3 Jun 2005 20:50:58 +0000 (GMT) (envelope-from tech@flare.net) Received: from mail.flare.net (mail.flare.net [207.10.131.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00DD843D1F for ; Fri, 3 Jun 2005 20:50:57 +0000 (GMT) (envelope-from tech@flare.net) Received: from dennylaptop2 [207.10.131.89] by mail.flare.net with ESMTP (SMTPD32-7.07) id A23116730072; Fri, 03 Jun 2005 16:48:49 -0400 From: "Denny Jodeit" To: "'Lisa Casey'" , Date: Fri, 3 Jun 2005 16:50:37 -0400 Message-ID: <003701c5687d$e52e61b0$59830acf@dennylaptop2> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <006c01c5687c$fc3cbec0$d580a23f@lisac> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Importance: Normal X-Declude-Sender: tech@flare.net [207.10.131.89] X-Spam-Tests-Failed: CMDSPACE [3] X-Note: This E-mail was scanned by Declude JunkMail (www.declude.com) for spam. Cc: Subject: RE: ftpchroot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 20:50:58 -0000 > Hello, > > I'm trying to restrict an ftp user to a particular directory. I've > written an ftpchroot file, as follows: > > Username /var/spool/ftp/ ./Username/photos > > > After I write the file and restart inetd, I am not able to login to > ftp with this user account at all. I have RTFM and evidently don't get > it... > > Thanks in advance for any and all suggestions. > > Denny Maybe you're trying to do something more complicated than I am, but I have ftpchroot working. My /etc/ftpchroot file just consists of a list of usernames, one per line. This effectively restricts the ftp user to his/her home directory on the server (the home directory, of course, is owned by the user in question). On your system does the user own the directory you are trying to ftpchroot him in? Perhaps that is a requirement... Lisa Casey Lisa, Yes, just a little different than your case...... In my example, I substituted "Username" for the real user name With plain old ftpd, as setup by default during installation and no ftpchroot file present at all, "Username" can login to ftp and ends up in /usr/home/Username. I want Username to only be able to login to /usr/home/Username/photos/ and no where else. Denny -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 267.5.2 - Release Date: 6/3/2005