From owner-freebsd-questions@FreeBSD.ORG Fri Jun 3 20:44:26 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 D465916A420 for ; Fri, 3 Jun 2005 20:44:26 +0000 (GMT) (envelope-from lisa@jellico.com) Received: from mail.jellico.com (mail.jellico.com [63.162.128.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8209E43D49 for ; Fri, 3 Jun 2005 20:44:26 +0000 (GMT) (envelope-from lisa@jellico.com) Received: from lisac (lisa.jellico.com [63.162.128.213]) by mail.jellico.com (8.12.6/8.12.6) with ESMTP id j53KgssS008522 for ; Fri, 3 Jun 2005 16:42:55 -0400 Received: from 127.0.0.1 (AVG SMTP 7.0.323 [267.5.2]); Fri, 03 Jun 2005 16:44:06 -0400 Message-ID: <006c01c5687c$fc3cbec0$d580a23f@lisac> From: "Lisa Casey" To: References: <002301c56874$23078e80$59830acf@dennylaptop2> Date: Fri, 3 Jun 2005 16:44:03 -0400 Organization: Netlink 2000, Inc. X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; format=flowed; charset=windows-1250; reply-type=original X-Scanned-By: MIMEDefang 2.48 on 127.0.0.1 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:44:27 -0000 ----- Original Message ----- From: "Denny Jodeit" To: Sent: Friday, June 03, 2005 3:40 PM Subject: ftpchroot > 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 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.5.2 - Release Date: 6/3/2005