使用者主資料夾在 WinSCP/FileZilla 中不可見

使用者主資料夾在 WinSCP/FileZilla 中不可見

我們已經設定了 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

https://media.giphy.com/media/L0GekGXOCwUOxv2TWL/giphy.mp4

答案1

Selinux 啟用了嗎?

ftpd_full_access如果您希望它能夠讀取任何未標記的地方public_content_t,您需要有selinux 布林值「 」。

(請不要關閉 selinux。)

相關內容