Centos 7 FTP 서버를 설정했습니다.
WinSCP 또는 FileZilla를 통해 연결하면 사용자의 홈 폴더에 드롭됩니다.
그 위의 레이어로 이동하면 해당 /home
폴더에는 더 이상 사용자의 홈 폴더가 표시되지 않습니다. 그러나 사용자의 홈 폴더를 수동으로 입력하면 해당 폴더로 이동합니다.
현재 디렉터리가 에 있는 동안 WinSCP/FileZilla에서 사용자의 홈 폴더를 볼 수 있습니까 /home
?
ls -ld /home /home/ftp/
drwxr-xr-x. 3 root root 17 Apr 2 16:11 /home
drwx------. 2 ftp ftp 99 Apr 2 16:04 /home/ftp/
/etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
userlist_enable=YES
userlist_file=/etc/vsftpd/user_list
userlist_deny=NO
pam_service_name=vsftpd
tcp_wrappers=YES
답변1
Selinux가 활성화되어 있습니까?
ftpd_full_access
레이블이 지정되지 않은 곳 어디든 읽을 수 있으려면 selinux 부울 " "이 필요합니다 public_content_t
.
(그리고 selinux를 끄지 마십시오.)