listen=YESanonymous_enable=NOlocal_enable=YESwrite_enable=YESlocal_umask=022dirmessage_enable=YES#本地用戶login後所在目錄,若沒有設置此項,則本地用戶login後將在他的home目錄(/etc/passwd的第六個欄位)中.匿名用戶的對應選項是anon_root<local_root=/var/ftpuse_localtime=YESxferlog_enable=YESconnect_from_port_20=YESxferlog_std_format=YESftpd_banner=Welcome to matty FTP service.chroot_list_enable=YESchroot_local_user=NOuser_sub_token=$USERlocal_root=/home/$USER/ftp# (default follows)chroot_list_file=/etc/vsftpd.chroot_listsecure_chroot_dir=/var/run/vsftpd/emptypam_service_name=ftprsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pemrsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.keyssl_enable=NOuserlist_enable=YESuserlist_file=/etc/vsftpd.userlistuserlist_deny=NO
follow this document's step:
be careful:
home/username/ftp
the root folder could't be written
there's solution, but I just let chroot reach other folder
if you want to change authority of ftp, use [chmod]
沒有留言:
張貼留言