Common problems and solutions of Linux client accessing FTP server

Source: Internet
Author: User

in the Linux system, to build a service, is to modify its configuration file, in general, the configuration file changes the probability of the problem is not small, mostly some other factors cause the client and server access problems, Here are some common problems that occur with the client accessing the FTP server to find a solution. Other services also have a similar solution.
1. Client cannot access FTP server
If the client is unable to access the FTP server is mostly a firewall mischief, iptables Firewall management tool by default prohibits the port number of the FTP transport protocol, so before formally configuring the VSFTPD service program, in order to avoid these default firewall policy "disruptive", but also need to clear iptables Firewall's default policy and save the state of the firewall policy that is currently cleaned

2. After configuring anonymous open mode, the client can log on to the FTP server, but cannot create and upload files or directories
The Iptables firewall policy has been emptied earlier, and permissions to allow anonymous users to create directories and write to files have been added to the VSFTPD Service program's master profile, but it does not seem to have taken effect. This is not a firewall or configuration file problems, but the default permissions of the shared directory in Mischief, in the VSFTPD service program anonymous open authentication mode, the default access to the/VAR/FTP directory. By viewing the permissions on this directory, only the root administrator has write access. No wonder the system will refuse to operate it! The following changes the owner of the directory to the System account FTP (the account already exists in the system), so it should be OK.

However, after logging on to the FTP server with the client, the system again error, or can not create and upload files and directories, this is why? Can it be that SELinux is in trouble, the following use the Getsebool command to see what the SELinux domain policy related to FTP is:

We can see a lot of the rules about FTP, we just need to pay attention to the circled above, the off is modified to on can be modified as follows:

After the modification, the file creation, modification and deletion can be performed smoothly.
Hint: the other two modes, local user mode and virtual user mode, if the client cannot access the FTP server if the configuration file is not a problem, just modify the SELinux policy.

Common problems and solutions of Linux client accessing FTP server

Related Article

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.