LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1166|回复: 3

用vsftp架设服务器无法上传

[复制链接]
发表于 2003-8-6 15:31:03 | 显示全部楼层 |阅读模式
我用的版本比较低,好像是1.1的。装完后是Xinetd模式的。
可以下载,但无法上传。部分配置文件是:
# Allow anonymous FTP?
anonymous_enable=YES
#
# 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
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# 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
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=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
#
大家帮我看看是哪个地方出了问题。
发表于 2003-8-6 19:58:00 | 显示全部楼层
看一看你的vsftpd是以什么用户名在运行,
再看一看你要上传的目录的属主及权限。
可能会有关系哦
发表于 2003-8-6 21:32:24 | 显示全部楼层
应该就是目录权限问题
发表于 2003-8-13 04:38:33 | 显示全部楼层
上传目录的权限设为:730,且属于:root.ftp用户组.
#chown_uploads=YES
#chown_username=whoever
改为:
chown_uploads=YES
chown_username=daemon
有利于管理.
另外:
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
这儿的anon_other_write_enable=YES不推荐使用,否则客户端权限太大了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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