Deny directory listing on vsftpd anonymous upload

Nikkilä Tommi tommi.nikkila at wmdata.fi
Tue Jul 24 07:06:16 UTC 2007


> Hi all,
> 
> I have successfully configured my FTP (vsftpd) server to allow anonymous uploading (with anonymous/ftp user). Currently there is a another user (anonadm) that has read/write access via FTP to files uploaded by anonymous user. The anonymous user has no read or write access to files (s)he uploaded to the server but is still able to view the directory contents.
> 
> The configuration of vsftp daemon is as follows (only the part concerning the anonymous upload):
> 
> anonymous_enable=YES
> allow_anon_ssl=YES               
> ftp_username=anonupl
> anon_root=/home/anonymous
> anon_upload_enable=YES
> anon_mkdir_write_enable=NO
> anon_other_write_enable=NO
> anon_world_readable_only=YES
> anon_umask=207
> 
> My question is: is it possible to further configure the vsftp deamon so that after the upload the anonymous user could not see the directory listing (and thus preventing the viewing of the file names in the directory)? Or is this done by the OS? I am currently using Red Hat's ES 4 (Update 4).
> 
> --
> Tommi Nikkilä



More information about the redhat-list mailing list