VSFTPD installation and configuration on SuSE (Enterprise Linux 10) __linux

Source: Internet
Author: User
Tags anonymous ftp connection syslog ssh

These two days on the SuSE installation and configuration of FTP, encountered a lot of problems, here to do a summary:
First, installation
SuSE's graphical user interface does a good job, so the installation process is relatively simple.
1, open Yast,software→software Management;
2, just start using SuSE Software Manager is very not accustomed to find the information needed in any place, but after a period of time, it feels that its classification is more convenient, but also to provide users with more information. In Filter→package Groups, in the following tree list Productivity→networking→ftp, you can also expand the FTP node, select the Servers node;
3, on the left-hand side of the package list to select Vsftpd, and then click on the Accept button below, will be prompted to insert the disc;
4, insert the required disc, the system will automatically start the installation, installation completed, you can view the following file List Options page VSFTPD related to all the files.
Second, start the service
After the installation is complete, the VSFTPD is started as an independent service and does not accept xinetd management. The system automatically adds a service named VSFTPD to the list of services. The steps to start the service are as follows:
1, Yast→system→system Services (Run level);
2, in the list of services to select VSFTPD, click the Enable button below, start the service, Finish.
Note that it may not start when you start vsftpd, sometimes because the service it relies on does not start, such as Syslog, when Syslog is selected, click the Enable button. If you are still unable to start, you can restart the XINETD service and then start the VSFTPD service.
Iii. Problems encountered
1, only allow anonymous users to log in
phenomena: In the FTP connection process, prompts the user name, the input this machine already has the user name Angel, obtains the prompt: 530 This FTP server is anonymous only, the login fails.
reason: After installing VSFTPD, it defaults to anonymous FTP server, allowing only anonymous users to log on.
Solving Method: VSFTPD has three server ways: Anonymous, local, and virtual user, where you need to modify the VSFTPD configuration to make it local. The VSFTPD configuration file is located in the/etc/directory with the name vsftpd.conf. About this profile on the internet has been a lot of experts to do a detailed analysis and explanation, and the document inside the notes are more detailed, here is no longer one by one explained. Here are just a few places to change:
Remove the Local_enable=yes before the # to make it available, indicating that the local user is allowed to log on;
Add the Listen_port=21 configuration entry and set the listening port to 21;
This step is optional, do not allow anonymous users to log on, change the value of Anonymous_enable=yes to No, set according to the actual needs.
Restart VSFTPD Services: Service vsftpd restart. After startup, after testing, log in with local user Angel and their password, successful.
Note: The above tests are performed on this computer (or after using SSH).
2, other machines can not connect the server
phenomena: After the test is passed, use FTP 192.168.1.8 on other machines (Windows or Redhat) to connect to the server and get connection closed by remote host or connection out hint. Connection failed.
reason: The SUSE firewall prevents foreign machines from accessing FTP-used ports.
Solving Method: Release the firewall restrictions on 20 and 21 ports used by FTP, as follows:
I> yast→security and Users→firewall;
Ii> Select Allowed services in the list on the left, and it is felt that, even if you install an FTP server, there is no FTP service to choose from in the Servces to allow list, but SSH, HTTP, HTTPS, samba, etc. are all impressively in the column , so use advanced settings. Click on the Advanced button in the lower right method to open the Advanced Settings dialog box;
Iii> in the TCP ports input 20 21, note that two port number between the use of space separated, OK;
Iv> next→accept, test, connect successfully, use Angel and password already in SuSE system to log in, success.

Note that although some of these problems are encountered under SuSE, they are still applicable in the configuration of VSFTPD in other operating systems.

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.