[Linux] Installation and configuration of vsftpd (local users, anonymous users, virtual users) and vsftpd.conf configuration file details

1. Installation

Install ftp under ubuntu

sudo apt install vsftpd

2. Related documents

2.1 log

/etc/logrotate.d/vsftpd: used for the Linux log system logrotate to record the logs of vsftpd, the default configuration is as follows

$ cat /etc/logrotate.d/vsftpd 
/var/log/vsftpd.log
{
   
    
    
        create 640 root adm

        # ftpd doesn't handle SIGHUP properly
        missingok
        notifempty
        rotate 4
        weekly
}

2.2 Configuration file

/etc/vsftpd.conf: Configure the permissions and ports of the vsftpd server. Common configurations are as follows:

 

Guess you like

Origin blog.csdn.net/u010168781/article/details/130382020