Set up ftp service under linuxmint

Source: Internet
Author: User
Set up the ftp service in linuxmint to install vsftpdsudoapt-getinstallvsftpd. after vsftpd is installed, edit the link file vsftpd. conf: sudovi/etc/vsftpd.confwww.2cto.com # whether anonymous login is allowed... install vsftpdsudo apt-get install vsftpd on the ftp service in linux mint. after vsftpd is installed, edit the link file vsftpd. conf: sudo vi/etc/vsftpd. conf www.2cto.com # specifies whether to allow anonymous logon to the FTP server. the default value is YES. # you can use the username ftp or anonymous for ftp logon. the password is the user's e-mail address. # If anonymous access is not allowed, set it to NO anonymous_enable = YES # whether to allow local users (that is, user accounts in linux) to log on to the FTP server, the default value is YES. # after a local user logs on, the user's home directory is displayed. after an anonymous user logs on, the user's download directory/var/ftp/pub is displayed. # if only anonymous users are allowed to access the Directory, add # Comment out to prevent local users from accessing the FTP server local_enable = YES # whether to allow local users to have write permissions on FTP server files. the default value is YES, which allows write_enable = YES # mask, the default local user mask is 077 # you can set the local user's file mask to the default 022, you can also set it to another value according to your preferences # local_umask = 022 # whether anonymous users are allowed to upload files. The global write_enable = YES must be set. The default value is YES # anon_upload_enable = YES # whether anonymous users are allowed to create new folders # anon_mkdir_write_enable = YES # whether to activate the directory welcome information function # When users access a directory on the server for the first time in CMD mode, the FTP server displays the welcome information # By default, the welcome information is in this directory. message file # This file stores custom welcome information, # dirmessage_enable = YES www.2cto.com # whether to enable the system to automatically maintain the uploaded and downloaded log files # The default log file is/var/log/vsftpd. log, you can also set it using the xferlog_file option below # default value: NO xferlog_enable = YES # Make sure PORT transfer connections originate from port 20 (ftp -Data ). # whether to set the FTP server to enable the FTP data port connection request # ftp-data transmission, 21 is the connection control port connect_from_port_20 = YES # set whether to allow changing the owner of the file to be uploaded, use with the following configuration item # Note: it is not recommended that you use the root user to upload files # chown_uploads = YES # set the owner of the uploaded files to be changed. if necessary, enter a system username # to change all uploaded files to the root owner. Whoever: Anyone # chown_username = whoever # set the log file for system maintenance record uploading and downloading on the FTP server #/var/log/vsftpd. log is the default. you can also set another # xferlog_file =/var/log/vsftpd. log # whether to write the transfer log file in the standard xferlog Format # The default value is/var/log/xferlog, you can also use the xferlog_file option to set it. # The default value is NO # xferlog_std_format = YES # The following are additional configurations, add the corresponding options to enable the corresponding settings # whether to generate two similar log files # the default values are/var/log/xferlog and/var/log/vsftpd. under the log Directory # The former is the wu_ftpd type transfer log, which can be analyzed using the standard log tool; the latter is the vsftpd type log # dual_log_enable # whether to set Originally output to/var/log/vsftpd. logs in the log are output to the system log # syslog_enable # sets the data transmission interruption interval. This statement indicates that the idle user session interruption time is 600 seconds # that is, when the data transmission ends, the user's connection time to the FTP server should not exceed 600 seconds. You can modify the value according to the actual situation # idle_session_timeout = 600 # set the data connection timeout time. This statement indicates that the data connection timeout time is 120 seconds, you can modify it according to the actual situation # data_connection_timeout = 120 # non-privileged system users required to run vsftpd. the default value is nobody # nopriv_user = ft1_cure # whether to identify asynchronous ABOR requests. # If the FTP client issues the "async ABOR" command, this setting must be enabled. # generally, this setting is not secure, therefore, we usually cancel www.2cto.com # async_abor_enable = YES # whether to transmit data in ASCII mode. By default, the server ignores requests in ASCII format. # Enabling this option will allow the server to transmit data in ASCII mode # however, this may cause DoS attacks in the "SIZE/big/file" mode # ascii_upload_enable = YES # ascii_download_enable = YES # Welcome information displayed when logging on to the FTP server # if necessary, you can create a directory named. message file, and write the Welcome information. save it. # ftpd_banner = Welcome to blah FTP service. # Blacklist settings. If you hate some email addresses, you can use this setting to cancel their logon permissions # you can block some special email addresses. # Deny_email_enable = YES # When deny_email_enable = YES, you can use this setting to specify which email addresses cannot log on to the vsftpd server # This file needs to be created by the user, one email address per line # banned_email_file =/etc/vsftpd/banned_emails # whether the user has the permission to access files other than his Directory after logging on to the FTP server # When set to YES, the user is locked in the home directory, vsftpd searches for the chroot_list file in the location of the following chroot_list_file option value # must work with the following settings # chroot_list_enable = YES # users listed in this file, after logon, you cannot switch to another directory other than your own directory # which is conducive to the security management and privacy protection of the FTP server. This file must be created by yourself # chroot_list_file =/etc/vsftpd/chroot_list # whether recursive queries are allowed. Disabled by default to prevent remote users from causing excessive I/O # ls_recurse_enable = YES # whether to allow listening. # If YES, vsftpd runs in standalone mode. vsftpd listens to and processes IPv4 port connection requests listen = YES # sets whether IPV6 is supported. To listen to IPv4 and IPv6 ports at the same time, # you must run two sets of vsftpd, use two sets of configuration files # make sure that one of the listening options is commented out # listen_ipv6 = YES # set the configuration file name used by the authentication service provided by the PAM plug-in module, that is,/etc/pam. d/vsftpd file # file =/etc/vsftpd/ftpusers field in this file, the description shows that the account content that the PAM module can resist comes from www.2cto.com # pam_service_name = vsftpd # in the/etc/vsftpd/ftpusers file, the default value is NO # if this option is set to YES, the user in the user_list file is allowed to log on to the FTP server # if userlist_deny = YES is set at the same time, the user in the user_list file will not be allowed to log on to the FTP server, or even enter the password prompt information # userlist _ Enable = YES/NO # set whether to block users in the user_list file from logging on to the FTP server. the default value is YES # userlist_deny = YES/NO # whether to use tcp_wrappers as the host access control mode. # Tcp_wrappers can implement host address-based access control for network services in linux # hosts in the/etc directory. allow and hosts. two deny files are used to set tcp_wrappers access control # The Former sets the allowed access record, and the latter sets the denied access record. # To Restrict anonymous access of some hosts to the FTP server 192.168.57.2, edit/etc/hosts. for example, add the following two lines to the allow File: # vsftpd: 192.168.57.1: DENY and vsftpd: 192.168.57.9: DENY # indicates that the IP address is 192.168.57.1/192.168.57.9 and the IP address is 192.168.57.2. # although the FTP server can be pinged, but cannot connect tcp_wrappers = YES add ftp user sudo useradd-m-d/home/user name-G ftp user name // when vsftp is installed add ftp group modify add user password sudo passwd user name enter the password www.2cto.com and restart the ftp service sudo/etc/init. d/vsftpd restart: use a tool or ftp 127.0.0.1 to log on to tycomputer of vsftpd.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.