免费注册 查看新帖 |

Chinaunix

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

[FTP] ftp配置问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-16 10:52 |只看该作者 |倒序浏览
我的配置是这样的:
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# 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
#
pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/user_list
use_localtime=YES
tcp_wrappers=YES

在etc/vsftpd/user_list有test帐号在ftpusers也有test 可是我每次登陆都是:
可是我每次登陆:
Name (127.0.0.1:root): test
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.

都这样!谢谢大家

论坛徽章:
0
2 [报告]
发表于 2009-11-16 12:10 |只看该作者
原帖由 shizhusz110 于 2009-11-16 10:52 发表
我的配置是这样的:
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
...

anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
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

论坛徽章:
0
3 [报告]
发表于 2009-11-17 15:09 |只看该作者
echo test >>/etc/vsftpd/chroot_list
service vsftpd restart

论坛徽章:
0
4 [报告]
发表于 2009-11-17 17:48 |只看该作者
原帖由 shizhusz110 于 2009-11-16 10:52 发表
我的配置是这样的:
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
...




/etc/vsftpd/user_list
这个文件本来存放禁止登录的用户名。但是你加了userlist_deny=NO 之后,那么将只允许这个文件里那些用户名登录。


/etc/vsftpd/ftpusers
这个文件默认存放的也是禁止登录的用户名。所以你不该把test用户加入进去。

论坛徽章:
0
5 [报告]
发表于 2009-11-19 12:00 |只看该作者
谢谢!!!有事情来回复晚了!

论坛徽章:
0
6 [报告]
发表于 2009-11-19 12:20 |只看该作者
谢谢你们真的谢谢 可以了!

论坛徽章:
0
7 [报告]
发表于 2009-11-19 12:48 |只看该作者
不过还想问下 !我已经将local的用户指向了/var/www/html!但是我登陆了却看不到里面的文件???这里面明明是有文件的啊!

论坛徽章:
0
8 [报告]
发表于 2009-11-19 13:00 |只看该作者
local是你的机器的用户是吧,你是在/etc/passwd里指的还是在配置文件里指的啊

论坛徽章:
0
9 [报告]
发表于 2009-11-19 13:20 |只看该作者
我是在etc/passwd文件修改了的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP