Install and configure vsftpd on SuSE (EnterpriseLinux10)
Source: Internet
Author: User
Install and configure vsftpd on SuSE (EnterpriseLinux10)-Linux Enterprise Application-Linux server application information. During the installation and configuration of FTP on Suse over the past two days, many problems have been encountered. Here is a summary:
I. Installation
Suse's graphical user interface is very good, so the installation process is relatively simple.
1. Open Yast, Software → Software Management;
2. The software manager that just started using Suse is very unaccustomed and cannot find the desired information. However, after a while, it is easier to classify it, it also provides more information for users. In Filter → Package Groups, in the tree list below, Productivity → Networking → Ftp, you can also expand the Ftp node and select the Servers node;
3. Select vsftpd from the software package list on the left, and click the Accept button below. A message is displayed, indicating that the disc is inserted;
4. After you insert the required disc, the system will automatically start installation. After installation is complete, you can view all vsftpd-related files on the File List option page below.
Ii. Start the service
After the installation is complete, vsftpd is started as an independent service and cannot be managed by xinetd. The system automatically adds a Service named vsftpd to the Service list. To start a service, follow these steps:
1. Yast → System Services (Run level );
2. Select vsftpd in the service list, click Enable at the bottom, start the service, and Finish.
Note: vsftpd may not be started when it is started, sometimes because the service on which it depends is not started, such as syslog. Select syslog and click Enable. If the xinetd service still cannot be started, restart the xinetd service and then start the vsftpd service.
Iii. Problems Encountered
1. Only anonymous users are allowed to log on
Symptom: During the ftp connection, enter the username and the username angel of the local machine. The following message is displayed: 530 This FTP server is anonymous only. Logon Failed.
Cause: After vsftpd is installed, the default value is anonymous FTP server, and only anonymous users are allowed to log on.
Solution: vsftpd has three server modes: anonymous mode, local mode, and virtual user mode. You need to modify the vsftpd configuration to local mode. The configuration file of vsftpd is located in the/etc/directory named vsftpd. conf. Many experts have analyzed and explained the configuration file in detail on the Internet, and the comments in the file are also detailed. I will not explain it one by one here. The following describes only the locations to be modified:
Remove the # Before local_enable = YES to make it available, indicating that local users are allowed to log on. Add the listen_port = 21 configuration item and set the listening port to 21. This step is optional, anonymous users are not allowed to log on. Change the value of anonymous_enable = YES to NO and set it as needed.
Restart the vsftpd service: service vsftpd restart. After the instance is started, log on to the local user angel and its password during the test. Note: The above test is performed on the local machine (or after logging on Using SSH.
2. Other machines cannot connect to the server
Symptom: After the local machine passes the test, use ftp 192.168.1.8 on another machine (Windows or Redhat) to connect to the server. The Connection closed by remote host or Connection timed out prompt is displayed, and the Connection fails.
Cause: The Suse firewall blocks access from external machines to the port used by FTP.
Solution: Open the firewall's restrictions on ports 20 and 21 used by FTP. The steps are as follows:
I> Yast → Security and Users → Firewall; ii> In the list on the left, select Allowed Services. What is surprising is that even if the FTP server is installed, there is no FTP service available in the Servces to Allow list, but SSH, HTTP, HTTPS, Samba and so on are all in the column, so use advanced settings. Click the Advanced button in the lower-right method to open the Advanced Settings dialog box. iii> enter 20 21 in TCP Ports. Note that the two port numbers are separated by spaces. OK; iv> Next → Accept, test again. The connection is successful. Use the angel and its password in the Suse system to log on.
Note: although some problems are encountered in Suse, they are still applicable to vsftpd configurations in other operating systems.
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