iT邦幫忙

0

VSFTPD 問題,求救!! (已解決,不用理會了)

s882 2019-04-16 12:24:192148 瀏覽

請教一下,小弟的系統是用CentOS7 ,在設定vsftpd上一直卡了一些問題。
我不想要讓ftp的帳號能瀏覽到上層目錄,只能瀏覽自己的Home目錄。
我參考了許多文章,像是下列,但試很多次的設定,都還是能瀏覽上層的目錄。

http://wilsbur.pixnet.net/blog/post/141566499-%5Blinux%5Dftp%E9%99%90%E5%88%B6%E5%8F%AA%E8%83%BD%E5%9C%A8%E5%AE%B6%E7%9B%AE%E9%8C%84

https://unix.stackexchange.com/questions/94603/limit-ftp-access-only-to-the-var-www-with-vsftpd

vsftpd.conf 目前的設定是這樣
anonymous_enable=no
local_enable=YES
write_enable=YES
local_umask=012
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/xferlog
xferlog_std_format=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
allow_writeable_chroot=YES
listen=YES

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

vsftpd_log_file=/var/log/vsftpd.log
log_ftp_protocol=YES
dual_log_enable=YES

userlist_enable=YES
userlist_deny=NO

chroot_list裡並沒有設定任何帳號。
請教各位前輩!!感謝!

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答