From owner-freebsd-questions@FreeBSD.ORG Thu Apr 3 16:30:51 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D7B6106566B for ; Thu, 3 Apr 2008 16:30:51 +0000 (UTC) (envelope-from victor@netmediaservices.net) Received: from fep9.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.freebsd.org (Postfix) with ESMTP id 064218FC20 for ; Thu, 3 Apr 2008 16:30:50 +0000 (UTC) (envelope-from victor@netmediaservices.net) Received: from [127.0.0.1] (d221-71-130.commercial.cgocable.net [216.221.71.130]) by fep9.cogeco.net (Postfix) with ESMTP id 13D5D1623; Thu, 3 Apr 2008 12:30:49 -0400 (EDT) Message-ID: <47F5062F.4070706@netmediaservices.net> Date: Thu, 03 Apr 2008 12:30:39 -0400 From: Victor Farah User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Mel References: <47F4F65E.3080007@netmediaservices.net> <200804031815.23360.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <200804031815.23360.fbsd.questions@rachie.is-a-geek.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080402-0, 04/02/2008), Outbound message X-Antivirus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: Re: ftpd help 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: Thu, 03 Apr 2008 16:30:51 -0000 Thanks This worked like a CHARM! This is very much appreciated! :) Mel wrote: > On Thursday 03 April 2008 17:23:10 Victor Farah wrote: > >> I have a default install of freebsd 6.2, and I enable ftpd in inetd. >> That all works nicely, I add a user to the system that needs to access >> ONLY two directories that are in two different places. >> For example: /usr/local/www/dir1 and /usr/local/www/dir2/ >> >> There are many directories in /usr/local/www/ that this person SHOULD >> not have access too. > > mkdir /home/personX/dir1 /home/personX/dir2 > mount -t nullfs /usr/local/www/dir1 /home/personX/dir1 > mount -t nullfs /usr/local/www/dir2 /home/personX/dir2 > > Done. You can also add '-o ro' if the user isn't allowed to make changes to > the directories.