CentOS 7.5 FTP service configuration and error repair

According to CentOS 7.5 FTP service configuration performed FTP service configuration. Then use FileZilla client connections, always being given.

Problem 1
Here Insert Picture Description
Solution:

  1. # vi /etc/pam.d/vsftpd Will be one of auth required pam_shells.so comment out this line of command
  2. # systemctl restart vsftpdRestart the FTP service

The reason:
because here pam_shells.so FTP means users need to log Shell, does not match with the actual situation, we need to annotate it. pam_shells.so specific purpose and meaning look here

Question 2
Here Insert Picture Description
Solution:
The command to change the #setsebool -P tftp_home_dir on
reason:
CentOS 7.5 SELinux security policy has been used tftp_home_dir instead of the ftp_home_dir. You can use #getsebool -a | grep ftpthe command to view them.
Here Insert Picture Description

Published 10 original articles · won praise 1 · views 1215

Guess you like

Origin blog.csdn.net/miles_ye/article/details/103663570