1.设置vsftpd.conf
anonymous_enable=YES
local_enable=YES
write_enable=YES
anon_upload_enable=YES
2.设置文件夹权限
/var/ftp文件权限为 755
/var/ftp/pub 权限设置为 777
chmod 755 ftp
chmod 777 pub
pub目录内能上传下载
3.重启vsftpd
service vsftpd restart
-
Previous
vsftpd中的umask=022 -
Next
Linux Directory Structure (File System Structure) Explained with Examples