Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Apr 2008 18:15:19 +0200
From:      Mel <fbsd.questions@rachie.is-a-geek.net>
To:        freebsd-questions@freebsd.org
Cc:        Victor Farah <victor@netmediaservices.net>
Subject:   Re: ftpd help
Message-ID:  <200804031815.23360.fbsd.questions@rachie.is-a-geek.net>
In-Reply-To: <47F4F65E.3080007@netmediaservices.net>
References:  <47F4F65E.3080007@netmediaservices.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
-- 
Mel

Problem with today's modular software: they start with the modules
    and never get to the software part.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804031815.23360.fbsd.questions>