How to solve the problem that ftp cannot view the list in centos?
After configuring the FTP server on Linux and logging in using the ftp tool, the directory /home can be accessed by manually writing the path, but no data can be seen in the folder and file lists.
There are files in the home directory
Cause: related to SELinux
Solution : Turn off SELinux
View SELinux status:/usr/sbin/sestatus -v #If the SELinux status parameter is enabled, it is in the open state
Modifying the configuration file requires restarting the machine
Modify the /etc/selinux/config file
Change SELINUX=enforcing to SELINUX=disabled
Restart the machine
Related references :centOS tutorial
The above is the detailed content of How to solve the problem that ftp cannot view the list in centos. For more information, please follow other related articles on the PHP Chinese website!