/etc/vsftpd.conf

listen=NO listen_ipv6=YES anonymous_enable=NO local_enable=YES user_sub_token=$USER local_root=/data/home/$USER guest_enable=YES guest_username=ftp nopriv_user=ftp anon_upload_enable=YES anon_mkdir_write_enable=YES anon_other_write_enable=YES chmod_enable=YES write_enable=YES local_umask=022 file_open_mode=0755 anon_umask=022 dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES allow_writeable_chroot=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key ssl_enable=NO

/etc/pam.d/vsftpd

用來設定 vsftpd 使用的密碼檔案

auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed auth required pam_pwdfile.so pwdfile /var/svn/account account required pam_permit.so

參考資料

  1. ubuntu vsftpd 安裝筆記
  2. Fixing 500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
  3. VSFTP + pam htpasswd + virtual users = "500 OOPS: cannot locate user entry:"
  4. vsftpd 550 Permission denied 出错解决方案
  5. FreeBSD 使用 vsftpd 的亂碼問題
  6. Changing upload permissions in vsftpd

台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()