| Subcribe via RSS

Deny file/directory deletion and directory creation in vsftpd

July 6th, 2012 | 109 Comments | Posted in FTP, Linux, network

vsftpdSome times there is situation when we need users to be able to upload files to ftp server but not allowed to delete files/directories and create directory.

vsftpd have cmds_allowed directive that can be used for this purpose. In this directive, specifies a comma-delimited list of FTP commands allowed by the server.  All other commands not specified are rejected. More »

Tags: , ,

vsftpd log files

July 6th, 2012 | 92 Comments | Posted in FTP, Linux, network

vsftpdIn vsftpd we can choose between these two log types:

– log only the file transfer (upload/download) information.

– log all FTP commands and responses. We will need this log when debugging FTP problems.

More »

Tags: , , ,

Restrict file type with vsftpd

September 4th, 2011 | 170 Comments | Posted in FTP, Linux, network

vsftpdvsftpd have an option to restrict file type(s) for upload/download.  That vsftpd option is deny_file.  For example, to restrict file *.mp3 and *.avi, use this in vsftpd configuration file:

deny_file={*.mp3,*.avi}

If we put the option in vsftpd.conf, it will be applied to all vsftpd users.  In virtual users configuration, we can put the option in specific user configuration file, so only selected user will be affected by the configuration.

Tags: ,