Centos – Whitelist file type on vsftpd on CentOS

centosftpunixvsftpd

I have CentOS server running on unix, and vsftpd FTP server installed.
I did chroot for users and now I'm trying to limit their file type upload.
I don't want to use deny_file because deny_file limit only few type (and there so many) + deny_file deny from all users including admin.

Is there any way to limit all file type except X,Y,Z?

Best Answer

There is no white list option for VSFTPD (or ProFTPD). The best you could probably do is to use deny_file in conjunction with user_config_dir. The user_config_dir directive specifies a directory that contains per user configuration files. Directives in these configuration files override the main server configuration.