vsftpd.conf file configuration instructions

  • anonymous_enable=YES

        Whether to allow anonymous login to the FTP server, the default setting is YES (allow).

  • local_enable=YES

        Whether to allow local users to log in to the FTP server, the default setting is YES (allow).

  • write_enable=YES

        Whether to allow the user to have write access to the FTP server, the default setting is YES (allow).

  • local_umask=022

        Set the file generation mask of the local user, the default is 022.

  • anon_upload_enable=YES

        Whether to allow anonymous users to upload files, the default setting is YES (allow).

  • anon_mkdir_write_enable=YES

        Whether to allow anonymous users to create new folders. The default setting is YES (allow).

  • dirmessage_enable=YES

        Whether to activate the directory welcome message function. When a user accesses a directory on the server for the first time, the FTP server will display a welcome message. By default, the welcome message is obtained through the .message file in the directory.

  • xferlog_enable=YES
        Whether to enable upload and download log logging.
  • ftpd_banner=Welcome to blah FTP service.
        Set the welcome login information in the FTP server. When the user logs in to the FTP server, they will see the welcome message " Welcome to blah FTP service. "
  • chroot_list_enable=YES
        chroot_list_file=/etc/vsftpd/chroot_list
        If chroot_list_enable is set to YES, vsftpd will look for the chroot_list file at the location of the chroot_list_file option value. The users contained in the /etc/vsftpd/chroot_list file will not be able to switch to a directory other than their own directory after logging in, and the FTP server will automatically switch them. to the user's own home directory. This will prevent users in the chroot_list file from going to the FTP home of other users at will, so as to facilitate the security management and privacy protection of the FTP server.
  • userlist_enable=YES
        userlist_deny=YES
        When userlist_enable is NO, users in the ftpuusers file will be prohibited from accessing the FTP server. Therefore , the ftpuusers file is also known as the "prohibited user list file for vsftpd".
        When userlist_enable is YES and userlist_deny is NO, the FTP server only allows users in user_list to access.
        When userlist_enable is YES and userlist_deny is YES, users in the ftpuusers and user_list files cannot access the FTP server.  
  • listen=YES
        When set to YES, vsftpd will run in standalone mode, and vsftpd will listen and handle connection requests by itself.
  • ascii_upload_enable=YES
        ascii_download_enable=YES
       When set to YES, it means that uploading and downloading files in ASCII mode is allowed.
  • idle_session_timeout=600
        If the user has no command operation within 600 seconds, it is forced to go offline to avoid occupying resources.
  • data_connection_timeout=120
        如果服务器和客户端的数据连接已经成功建立,但是可能由于线路问题导致在120秒内还是无法顺利地完成数据的传送,客户端的连接就会被vsftpd强制剔除。

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326481927&siteId=291194637