From owner-freebsd-questions@FreeBSD.ORG Fri Jun 3 21:51:08 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 527A616A41C for ; Fri, 3 Jun 2005 21:51:08 +0000 (GMT) (envelope-from peo@intersonic.se) Received: from neonpark.inter-sonic.com (neonpark.inter-sonic.com [212.247.8.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBCA943D48 for ; Fri, 3 Jun 2005 21:51:07 +0000 (GMT) (envelope-from peo@intersonic.se) Message-ID: <42A0D0C5.1020900@intersonic.se> Date: Fri, 03 Jun 2005 23:51:01 +0200 From: Per olof Ljungmark User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <003701c5687d$e52e61b0$59830acf@dennylaptop2> In-Reply-To: <003701c5687d$e52e61b0$59830acf@dennylaptop2> Content-Type: text/plain; charset=windows-1250; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at inter-sonic.com 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 21:51:08 -0000 Denny Jodeit wrote: >>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 If username only (no path) in ftpchroot, enter the path you want the user chrooted to in /etc/passwd. What happens? If you need shell home and ftp home to be different you need the path in ftpchroot. passwd(5) and ftpchroot(5). What to the logs say? Try to use -d with ftpd.