Linux does not see a file list for FTP issues

Source: Internet
Author: User

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

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.