Install the FTP server on Ubuntu (general configuration)

Source: Internet
Author: User

Install the FTP server on Ubuntu

1: Install vsftpd


~ $ Sudo apt-Get install vsftpd


Ubuntu10.10 is installed by yourself. This step is omitted.

 


2: Configure vsftpd


2.1 modify the configuration file of vsftpd. Such configuration files are usually located in the/etc directory.


~ $ Sudo gedit/etc/vsftpd. conf


A lot of commands in the original file are commented out. You only need to enable the commands. The following are the commands that are enabled (each entry is described in the configuration file)


Listen = yes # server listener
Anonymous_enable = yes # Anonymous Access Allowed
Local_enable = yes # allow access to the local host
Write_enable = yes # Write allowed
Anon_upload_enable = Yes
# Anonymous upload is allowed. The default value is no, which can be enabled if it is troublesome. I am not responsible for any problems ~
Anon_mkdir_write_enable = yes # Allow Anonymous Folder creation
Dirmessage_enable = yes # enter the folder to allow
Xferlog_enable = yes # ftp logging allowed
Connect_from_port_20 = yes # Port 20 is allowed as the data transmission Port
Secure_chroot_dir =/var/run/vsftpd/empty
Pam_service_name = vsftpd
Rsa_cert_file =/etc/SSL/private/vsftpd. pem


Save.

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.