※ 引述《bruce620 (o(‧"‧)o)》之銘言:
: 問題一是我限制帳號只能在自己的家目錄下
: 但是ftp登入後還是能到別人的目錄裡
: 我在/etc/vsftpd.chroot_list有建一個檔 裡面有打了他的帳號
: vsftp也有restart但還是能進到別人的目錄裡頭
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
所以你設了 chroot_local_user=yes 等於是只有在list內的才不會被限制
: 問題二是 ftp原本能登入 但是檔案都無法上傳上去
: 我的資料夾的權限都是755
: 然後我重開機後 就登不進去了
: 我也有執行 sudo /etc/init.d/vsftpd start
: 但重開後就進不去@@
沒有設定開機時啟動vsftpd吧? chkconfig vsftpd on
檔案無法上傳,錯誤訊息貼一下。有開selinux的話 man ftpd_selinux
--
Nice to meld you.
--
: 問題一是我限制帳號只能在自己的家目錄下
: 但是ftp登入後還是能到別人的目錄裡
: 我在/etc/vsftpd.chroot_list有建一個檔 裡面有打了他的帳號
: vsftp也有restart但還是能進到別人的目錄裡頭
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
所以你設了 chroot_local_user=yes 等於是只有在list內的才不會被限制
: 問題二是 ftp原本能登入 但是檔案都無法上傳上去
: 我的資料夾的權限都是755
: 然後我重開機後 就登不進去了
: 我也有執行 sudo /etc/init.d/vsftpd start
: 但重開後就進不去@@
沒有設定開機時啟動vsftpd吧? chkconfig vsftpd on
檔案無法上傳,錯誤訊息貼一下。有開selinux的話 man ftpd_selinux
--
Nice to meld you.
--
All Comments