Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Aug 2008 00:28:00 +0300
From:      Manolis Kiagias <sonic2000gr@gmail.com>
To:        John Almberg <jalmberg@identry.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Controlling read access
Message-ID:  <48922E60.5090908@gmail.com>
In-Reply-To: <26259A11-0CE7-43FB-878C-1A989C1EB006@identry.com>
References:  <26259A11-0CE7-43FB-878C-1A989C1EB006@identry.com>

next in thread | previous in thread | raw e-mail | index | archive | help
John Almberg wrote:
> I operate a server on which I am typically the only ssh user, but I do 
> provide a small number of users ftp access.
>
> Each user has their own home directory. Currently all home directories 
> have read permission set for 'other'. This means if I log in as one 
> user, I can read and even download the contents of other users home 
> directories.
>
> I want to block this read access. What is the best way to do this? 
> Turn off the read bit for 'other'? Or is there some better way?
>
> Thanks: John
>

What ftp server software are you using?

For example, in proftpd, you simply add this line to 
/usr/local/etc/proftpd.conf:

DefaultRoot ~

and everyone is "jailed" into his own directory.

It also seems the ftp daemon in the base system supports this through 
/etc/ftpchroot.
If you are using it, read the man pages for ftpd(8) and ftpchroot(5)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48922E60.5090908>