FTP – > VSFTPD – >允许上传文件夹

我有一个使用VSFTPD的Fedora FTP服务器。 我想知道我怎么可以允许用户上传目录和目录。

提前致谢。

确保你有

write_enable=yes

在你的vsftpd.conf中 。 它默认closures,所以默认你的FTP站点是只读站点。

检查你的SELINUX设置。 VSFTPD会允许这个,可能是SELINUX阻塞了这个。

这是来自RHEL5的工作configuration。

它将chroot用户到他们的主目录,并允许创build文件/文件夹,假设他们可以通过在系统pamconfiguration中启用的方法进行身份validation。

 anonymous_enable=NO local_enable=YES write_enable=YES local_umask=0072 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_std_format=YES listen=YES pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES ascii_upload_enable=YES ascii_download_enable=YES ftpd_banner=FTP server ls_recurse_enable=YES chroot_local_user=YES pasv_min_port=30000 pasv_max_port=60000 force_dot_files=YES use_localtime=YES 

通过上面的configuration,你可以使用/etc/hosts.allowlockingvsftpd给某些远程用户,或者允许ALL连接。

当你说“用户”时,你是指本地系统用户吗? 如果是这样,你需要“ local_enable行,如果你的意思是“VSFTPD用户”,则忽略它。

 # Uncomment this to allow local users to log in. local_enable=YES # Uncomment this to enable any form of FTP write command. write_enable=YES