免费注册 查看新帖 |

Chinaunix

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

[FTP] pureftp用户登陆失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-15 18:11 |只看该作者 |倒序浏览
安装完pureftp后,
groupadd ftpgroup
useradd -g ftpgroup -d /home/ftpuser -s /etc ftpuser

pure-pw useradd test -u ftpuser -d /home/ftpuser/joe

./pure-ftpd -A -c50 -B -C3 -D -E -fftp -H -I0 -L2000:8 -m4 -s -U133:022 -u100 -j -k99  -y3:20 &
启动后,无法用test登陆,说验证失败...
大家有类似的经验吗,谢谢了

论坛徽章:
0
2 [报告]
发表于 2006-04-16 13:09 |只看该作者
可以进入输入用户名和密码的框,也就是telnet 21,22没问题,pureftpd.passwd也有用户的信息...

论坛徽章:
0
3 [报告]
发表于 2006-04-17 09:48 |只看该作者
上面的问题已经解决,自己防火墙规则设置错误,并且要用-l参数指定数据库,请教为什么我用了-j参数,用户自己登陆不会自动创建根目录呢,需要手动创建才可以

论坛徽章:
0
4 [报告]
发表于 2006-04-17 12:18 |只看该作者
chmod 755 /home/ftpuser还是不行,一定要在ftpuser下手动创建该用户目录才可以登陆...

论坛徽章:
0
5 [报告]
发表于 2006-04-17 13:08 |只看该作者
有人帮忙吗?谢谢了

论坛徽章:
0
6 [报告]
发表于 2006-04-17 13:22 |只看该作者
331 User fgn OK. Password required
Password:
421 Home directory not available - aborting
Connection closed by remote host.
报错信息

论坛徽章:
0
7 [报告]
发表于 2006-04-17 13:33 |只看该作者
Home directory not available
很明显,登录用户的主目录不存在

论坛徽章:
0
8 [报告]
发表于 2006-04-17 13:38 |只看该作者
是呀,我在启动pure-ftpd时使用了-j选项呀,可他不会自动创建/home/ftpuser/fgn这个目录呀,必须要手动创建该目录才可以登陆....

- '-j': If the home directory of a user doesn't exist, automatically create
it. The newly created home directory belongs to the user and permissions are
set according to the current directory mask. Only the home directory can be
created (so /home/john/./public_html won't work, but /home/john will) . To
avoid local attacks, the parent directory should never belong to an untrusted
user. Also note that you must trust whoever manages the users databases,
because with that feature, he'll be able to create/chown directories anywhere
on the server's filesystem.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP