vsftpd文件上传权限

Posted by windea on February 3, 2012

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