免费注册 查看新帖 |

Chinaunix

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

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

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

proftp无法登录

RedHat 9吧

rpm -qa |grep pam

什么结果?

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

proftp无法登录

其中jiubu是我的建的用户名,共享目录/home/jiubu的属主就是jiubu
我作过chown jiubu:ftpusers /home/jiubu
  ftpusers是我的用户组

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

proftp无法登录

结果是,不明白pam是作什么用的
[root@localhost sbin]# rpm -qa |grep pam
pam_smb-1.1.6-7
pam-devel-0.75-48
pam-0.75-48
pam_krb5-1.60-1

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

proftp无法登录

/etc/pam.d目录下有名为ftp的文件吗?

内容是什么?

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

proftp无法登录

/etc/pam.d下没有ftp这个文件

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

proftp无法登录

源码包解开后,在contrib/dist/rpm目录下有一个ftp.pamd文件,copy到/etc/pam.d目录下试试

cp ftp.pamd /etc/pam.d/ftp

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

proftp无法登录

操作完成,然后呢

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

proftp无法登录

[quote]原帖由 "chinafql"]操作完成,然后呢[/quote 发表:
重启proftpd,登录试试

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

proftp无法登录

郁闷,还是老样子,辛苦版主了

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

proftp无法登录

我看了下/etc/pam.d/ftp的内容,
#%PAM-1.0
auth       required     /lib/security/pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth       required     /lib/security/pam_pwdb.so shadow nullok
                                                                                
# If this is enabled, anonymous logins will fail because the 'ftp' user does
# not have a "valid" shell, as listed in /etc/shells.
#
# If you enable this, it is recommended that you do *not* give the 'ftp'
# user a real shell. Instead, give the 'ftp' user /bin/false for a shell and
# add /bin/false to /etc/shells.
#auth       required    /lib/security/pam_shells.so
                                                                                
account    required     /lib/security/pam_pwdb.so
session    required     /lib/security/pam_pwdb.so
我在/etc/下没有ftpusers这个文件
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP