Linux about FTP not see the file list of issues detailed _linux

Source: Internet
Author: User

Today, after configuring Linux server FTP, login is normal, using the FTP tool after logging in, all directories can be manually write path access, but the folder and file list do not see the data.

Later analysis, summed up the cause of the result is related to SELinux, so by closing the SELinux after the attempt, the FTP folder and file list are normal to see.

Below are 2 diagrams to resolve before and after the screenshot:

1, before the solution, by entering the correct path can read access, but not see the list.


2, after the solution, you can visually view the list data.

There are three ways to set up SELinux under Linux

First, in the graphical interface:

Desktop--> Management--> security level and firewall, set to disable.

Second, in the command mode:

Modify file:/etc/selinux/config, and then reboot the system. Specific modifications as shown:


Third, run the command: Setup, enter the "firewall Configuration", in the SELinux bar, select "Disabled."

Operation Command: Setenforce 0 (no reboot required).

Turn off SELinux protection for the specified service (for example, FTP):

1, use the command: Getsebool Ftpd_disable_trans can view the current state if not on

2, Input command: Setsebool Ftpd_disable_trans 1

Of course, you can add the-p parameter so that you don't have to enter this command every time you boot

Setsebool-p Ftpd_disable_trans 1

As for the explanation of the role of SELinux, here is not elaborated, we can understand Baidu.

The above Linux on the FTP can not see the file list of the problem is small series to share all the content, hope to give you a reference, but also hope that we support the cloud-dwelling community.

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.