免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1578 | 回复: 5
打印 上一主题 下一主题

[FTP] 求教,vsftp上传问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-12 11:42 |只看该作者 |倒序浏览
今天修改了vsftpd.conf将匿名用户限定在/pub/anon目录后,本地帐号不能向anon目录中上传文件,显示为
150 Here comes the directory listing.
226 Directory send OK.
列表完成: 0 bytes 于 0.06 (1.00 KBps)
传输队列已完成
1 个文件传输失败
CDUP
250 Directory successfully changed.
PWD
257 "/data/ftp/pub"
PORT 192,168,1,2,5,181
200 PORT command successful. Consider using PASV.


下面是vsftpd.conf内容
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
anonymous_enable=YES
#
local_enable=YES
#
write_enable=YES
#
local_umask=022
#
#anon_upload_enable=YES
#
#anon_mkdir_write_enable=YES
#
dirmessage_enable=YES
#
xferlog_enable=YES
#
connect_from_port_20=YES
#
#chown_uploads=YES
#chown_username=whoever

#
xferlog_file=/var/log/vsftpd.log
#
xferlog_std_format=YES
#
idle_session_timeout=600
#
data_connection_timeout=120
#
#nopriv_user=ftpsecure
#
#async_abor_enable=YES
#
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
ftpd_banner=Welcome to FTP service.
#banner_file=/etc/vsftpd/banner
#
#deny_email_enable=YES
#banned_email_file=/etc/vsftpd.banned_emails
#
ls_recurse_enable=YES

pam_service_name=vsftpd
userlist_enable=NO
#enable for standalone mode
listen=YES
tcp_wrappers=YES

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
anon_root=/var/ftp/pub/anon
anon_max_rate=30000
max_per_ip=4
max_clients=100

请各位大大指点一下
谢谢

论坛徽章:
0
2 [报告]
发表于 2005-10-12 11:54 |只看该作者

求教,vsftp上传问题

/pub/anon目录的权限?

论坛徽章:
0
3 [报告]
发表于 2005-10-12 15:06 |只看该作者

求教,vsftp上传问题

[root@www pub]# ls -l
total 12
drwxr-xr-x   4 ftpadmin ftpadmin 4096 Oct 12 09:13 ????
drwxr-xr-x   2 niujing  ftpadmin 4096 Oct 11 14:32 anon
drwxrwxr-x  11 ftpadmin ftpadmin 4096 Oct 12 11:15 video

anon这个目录是我用flashxp登录ftp后建立的,登录名用的是ftpadmin,怎么在这里变成niujing了?
才开始接触linux,对用户及权限完全摸不到头绪
请各位大大指点一下
谢谢

论坛徽章:
0
4 [报告]
发表于 2005-10-12 17:11 |只看该作者

求教,vsftp上传问题

贴出vsftpd.conf的内容

论坛徽章:
0
5 [报告]
发表于 2005-10-12 17:48 |只看该作者

求教,vsftp上传问题

上面有啊
第一层

论坛徽章:
0
6 [报告]
发表于 2005-10-12 21:29 |只看该作者

求教,vsftp上传问题

原帖由 "heavenx" 发表:
上面有啊
第一层

抱歉!看的帖子多了。。。


目录的权限不对

chown -R root:ftp /pub/anon

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

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP