LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: hoho_zhao

[绝地求救!]对vsftpd绝望了!匿名上传问题!英文看遍,网络搜烂。。。

[复制链接]
发表于 2007-1-22 19:56:11 | 显示全部楼层
恩 不好意思看错地方了
然后我自己在suse 10.2 里面配置了一下vsftpd
已经可以匿名上传和下载了
-------------------------------------------------------------
vsftpd.conf

首先需要定义全局的
# General Settings
#
# Uncomment this to enable any form of FTP write command.
#
write_enable=YES

然后才是匿名的
# Anonymus FTP user Settings
#
# Allow anonymous FTP?
#
anonymous_enable=YES
#
# Anonymous users will only be allowed to download files which are
# world readable.
#
#anon_world_readable_only=YES
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#
anon_upload_enable=YES
#
# Default umask for anonymus users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#
#anon_umask=022
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#
anon_mkdir_write_enable=YES
#
# Uncomment this to enable anonymus FTP users to perform other write operations
# like deletion and renaming.
#
#anon_other_write_enable=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#
#chown_uploads=YES
#chown_username=whoever

--------------------------------------------------------------
然后查一下/var/ftp/pub 的权限 需要是ftp用户和组
suse 10.2 是在/srv/ftp下面,我建立一个pub的目录 ,修改其的组 用户全部是ftp

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2007-1-22 20:05:13 | 显示全部楼层
忘记说了楼主的 local_umask=022
这个可以注释掉,使用其他的ftp工具才需要修改
回复 支持 反对

使用道具 举报

发表于 2007-1-23 05:29:38 | 显示全部楼层
以前也碰到过这个问题
我的解决办法是  
chmod 777
然后关掉 selinux就可以了
不过这样貌似很不安全 内网用用倒是没什么问题
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表