Anonymous ftp service-Linux Enterprise Application-Linux server application information. The following is a detailed description. Objective: To allow anonymous ftp uploads and downloads of files. Required that
The root directory is/data/pub. You can upload files to the/data/pub/upload directory anonymously and allow
Anonymous Users are allowed to delete files in this directory. Anonymous users do not need to enter a password.
Operation: Install vsftpd to provide the ftp service and use the super server xinetd to monitor the connection.
To respond to the ftp service request.
Section 1 install and configure vsftpd
Download the vsftpdinstallation package vsftpd-1.2.2.tar.gz and decompress it with the tar command.
To enable the tcp_wrapper feature (only in this way can super servers be used
Xinetd monitors connections and responds to ftp service requests.) before compilation, modify "builddefs. h ".
"Statement in the file, # undef VSF_BUILD_TCPWRAPPERS
Change
# Define VSF_BUILD_TCPWRAPPERS
Then run the make command to compile and generate an executable file. Finally, specify the file
Copy the file to a specific directory to complete the installation. Note the installation of vsftpd and the installation of a typical tar package
The installation is not the same, and there is no configure, while the make install process requires the following
To be manually completed.
# Cp vsftpd/usr/local/sbin/vsftpd
# Cp vsftpd. conf/etc
# Cp vsftpd. conf.5/etc
# Mkdir/var/ftp
After the installation is successful, you can modify the configuration file/etc/vsftpd. conf to control the vsftpd
Run. As required, the following settings should be made:
Write_enable = YES
Anon_upload_enable = YES
Anon_mkdir_write_enable = YES
Anon_other_write_enable = yes
No_anon_password = yes
Anon_root =/data/pub
Anon_umask = 0
Run the following command to allow anonymous users to access the/data/pub/upload directory.
Upload and Delete row files.
# Chown ftp. ftp/data/pub/upload
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