This article consists of two reprinted articles.
Article 1:
System Environment: RedHat 9 (core: linux-2.4.20-8)
Samba: vsftpd-1.1.3-8
Test environment: WINXP accesses the virtual host of RedHat 9.
Lab requirements: configure the FTP server. Anonymous users can access, upload, and download files.
The procedure is as follows:
(1) To edit/etc/vsftpd. conf, You need to modify the following configuration commands to remove.
Anonymous_enable = Yes allows anonymous users to access
Anon_upload_enable = Yes allows anonymous users to upload
Anon_mkdir_write_enable = Yes allows anonymous users to create files
Anon_uploads = Yes allows users to upload
Add the following code
Anon_other_write_enable = Yes
Anon_umask = 077 or 777 change File Permissions
(2) Start the FTP service
#/Etc/rc. d/init. d/vsftd start
Problems encountered in the experiment
1. Access failure
Check whether the firewall is disabled and service iptables stop
2. Upload but not download
Remove the # Before chown_upload = yes, and then add the File Permission of anon_umask = 077 at the end.
3. No write permission
# Chmod 777/var/FTP/pub
Article Conversion
Http://hi.baidu.com/nfubuntu/blog/item/0dd94ba7bb354e95d0435867.html
Article 2:
Some FTP changes in redhat9.0: 1) only vsftp is left on the FTP server, and the original wu-FTP is not put; 2) the configuration file is changed to:/etc/vsftp. conf; replace the port to provide the service. You can change the ftp port to a port other than 21. step 1: Modify/etc/vsftpd. add a line to Conf, listenport = 2121; step2: restart the vsftpd service. the user's default directory is/home/username. If you do not want the user to switch to the previous directory/home during FTP, modify/etc/vsftpd. conf. step 1: Change the following three rows to chroot_list_enable = Yes chroot_list_file =/etc/vsftpd/chroot_list Step 2: Add a new file,/etc/vsftpd/chroot_list. add two lines. Peter jchn Step3: restart vsftpd.
Article 2 Transfer from
Http://blog.csdn.net/newger/archive/2008/01/15/2045217.aspx also: If you need to have the root user log on to FTP, modify the following two files
/Etc/vsftpd. ftpusers and/etc/vsftpd. user_list can be added before root! (Comment out)