Linux does not see a file list for FTP issues

Source: Internet
Author: User

Today after configuring the Linux server's FTP, the login is OK, after using the FTP tool to log in, all directories can be accessed by the manual write path, but the folder and file list cannot see the data.

Later analysis, summed up the cause of the results are related to SELinux, so by turning off SELinux after the attempt, the FTP folder and file list are normal to view.

The following 2 images are resolved before and after settlement:

1, before the resolution, by entering the correct path can be read access to normal, but not see the list.

2, after the resolution, you can visualize the list of data.

==========================================================================================

There are three ways to set SELinux under Linux.
First, in the graphical interface:
Desktop--Manage security levels and firewalls, set to disable.
Second, in the command mode:
Modify the file:/etc/selinux/config, and then restart the system . Specific changes

Third, run the command: Setup, go to "firewall Configuration", in the SELinux bar, select "Disable".
Four, run the command: Setenforce 0, (do not need to restart).

Turn off SELinux protection for specified services (FTP as an example):
1, use the command: Getsebool Ftpd_disable_trans can view the current status if not on
2. Input command: Setsebool Ftpd_disable_trans 1
Of course, you can add the-p parameter so that you don't need to enter this command every time you start
Setsebool-p Ftpd_disable_trans 1

As for the detailed role of SELinux, here is not elaborated, you can understand Baidu.

Linux does not see a file list for FTP issues

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.