Todd Cary
2011-Mar-25 19:09 UTC
[CentOS] How to limit ftp users to just view their directory
I am in the process of bring up Centos 5.5. My ftp server is vsftp. When I add a user (e.g. brian), the "brian" directory is owned by "brian" and is in the "brian" group with 700 permissions. However, using a FTP client, the user "brian" can view all of the directories. I do not see any directive in vsftpd.conf to limit this. What have I missed? Todd -- Ariste Software Petaluma, CA 94952 http://www.aristesoftware.com
Hakan Koseoglu
2011-Mar-25 19:13 UTC
[CentOS] How to limit ftp users to just view their directory
On 25 March 2011 19:09, Todd Cary <todd at aristesoftware.com> wrote:> I am in the process of bring up Centos 5.5. ?My ftp server is > vsftp. ?When I add a user (e.g. brian), the "brian" directory is > owned by "brian" and is in the "brian" group with 700 > permissions. ?However, using a FTP client, the user "brian" can > view all of the directories. ?I do not see any directive in > vsftpd.conf to limit this. ?What have I missed?You missed the chroot options. chroot_local_user should be set to yes. If you want only certain users to be chrooted, then use chroot_list_enable and add the users to the list file. What this file does changes depending on the value of the chroot_local_user so please read the manual for the exact explanation. -- Hakan (m1fcj) - http://www.hititgunesi.org