[CentOS] How to limit ftp users to just view their directory

Todd Cary todd at aristesoftware.com
Fri Mar 25 23:38:16 UTC 2011


On 3/25/2011 12:13 PM, Hakan Koseoglu wrote:
> 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 -

Thank you!  There it was within the commented section of 
vsftp.conf.  All working now.

Todd

-- 
Ariste Software
Petaluma, CA 94952

http://www.aristesoftware.com




More information about the CentOS mailing list