After configuring Linuxserver FTP today, the login is OK. When you log in using the FTP tool, all folders can be visited by hand-written paths, but the folders and file lists do not see the data.
Later analysis, summed up the cause of the results are related to SELinux. As a result, the FTP directory and the list of files can be viewed properly by shutting down SELinux.
For example the following 2 graphs are resolved before and after settlement:
1, before the solution, by entering the correct path to read access to the normal, but do not see the list.
Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvy2f0b29w/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70 /gravity/center ">
2, after the settlement. Ability to visualize view list 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:
Change the file:/etc/selinux/config, and then restart the system. Detailed changes
Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvy2f0b29w/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70 /gravity/center ">
Third, execute the command: Setup, enter "firewall Configuration". In the SELinux bar, select Disable.
Four, the execution command: Setenforce 0, (do not need to restart).
Turn off SELinux protection for specified services (FTP as an example):
1. Use command: Getsebool Ftpd_disable_trans be able to view the current state assumption is not on
2. Input command: Setsebool Ftpd_disable_trans 1
Of course, you can also increase the-P parameter so that you do not need to enter this command every time you boot
Setsebool-p Ftpd_disable_trans 1
As for the specific explanatory role of SELinux. Here is not elaborated, you can understand Baidu.
Linux does not see a file list for FTP issues