免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: chinafql
打印 上一主题 下一主题

[FTP] proftp无法登录 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2005-09-29 14:20 |只看该作者

proftp无法登录

添加到/etc/ftpusers文件里的用户都是不允许登录的

可以touch /etc/ftpusers,建一个空的文件试试


如果还不行,在配置里加上下面的试试
<IfModule mod_auth_pam.c>;
    AuthPAMAuthoritative off
  </IfModule>;

你再看看这个
http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-Authentication.html
http://www.proftpd.org/docs/faq/linked/faq-ch7.html

论坛徽章:
0
22 [报告]
发表于 2005-09-29 14:22 |只看该作者

proftp无法登录

对了,proftpd -l 什么结果?

论坛徽章:
0
23 [报告]
发表于 2005-09-29 14:24 |只看该作者

proftp无法登录

[root@localhost etc]# /usr/local/proftpd/sbin/proftpd -l
Compiled-in modules:
  mod_core.c
  mod_xfer.c
  mod_auth_unix.c
  mod_auth_file.c
  mod_auth.c
  mod_ls.c
  mod_log.c
  mod_site.c
  mod_auth_pam.c
  mod_cap.c

论坛徽章:
0
24 [报告]
发表于 2005-09-29 14:28 |只看该作者

proftp无法登录

结果还是不行,在看那个超链接

论坛徽章:
0
25 [报告]
发表于 2005-09-29 14:38 |只看该作者

proftp无法登录

看的一头雾水,版主帮我看看我的proftpd.conf配置是不是正确的

论坛徽章:
0
26 [报告]
发表于 2005-09-29 15:42 |只看该作者

proftp无法登录

我把用户的shell改成/bin/bash就可以了,原先的是/bin/nologin,真是奇怪,可是这样一来,FTP用户不是可以登陆服务器了吗?

论坛徽章:
0
27 [报告]
发表于 2005-09-29 15:46 |只看该作者

proftp无法登录

[quote]原帖由 "chinafql"]我把用户的shell改成/bin/bash就可以了,原先的是/bin/nologin,真是奇怪,可是这样一来,FTP用户不是可以登陆服务器了吗?[/quote 发表:


哦,原来如此!还是shell的问题。

/bin/nologin?应该是/sbin/nologin吧
which nologin看看

看看你的/etc/shells这个文件,把/sbin/nologin加到这个文件里吧(如果文件中没有的/sbin/nologin话)

论坛徽章:
0
28 [报告]
发表于 2005-09-29 16:05 |只看该作者

proftp无法登录

是/bin,如果改成/sbin的话就不能进了
which nologin 的结果是/sbin/nologin

/etc/shells里有/sbin/nologin,这是一个什么文件?

论坛徽章:
0
29 [报告]
发表于 2005-09-29 16:11 |只看该作者

proftp无法登录

还有个问题就是我运行/etc/rc.d/init.d/proftpd start 时提示
starting proftpd: execvp:没有那个文件或目录
这个是什么意思呢,如果我到/usr/local/proftpd/sbin/proftpd运行就可以.

论坛徽章:
0
30 [报告]
发表于 2005-09-29 16:38 |只看该作者

proftp无法登录

把你的用户的shell改成/sbin/nologin试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP