LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1987|回复: 19

pam的升级比较麻烦,菜鸟要注意 [已解决]

[复制链接]
发表于 2008-1-19 08:16:18 | 显示全部楼层 |阅读模式
表现在pam升级上既然不成熟为啥让大家升级,而且是问题很多后才出一个指导。并且这个指导很是专业,一般人根本看不明白,没法照做。我一气之下把/etc/pam.d下的文件全删了,删除pam后重新装pam,这下好象行了,可除root外普通用户无法登陆X。唉,挣扎ing。
发表于 2008-1-19 09:01:45 | 显示全部楼层
最近俺的pam好像没升级,又一个用~x86用户发现gentoo的BUG了?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-19 09:07:22 | 显示全部楼层
我不是~x86用户,我没那实力。这也不算什么bug。不便而已。:email:
回复 支持 反对

使用道具 举报

发表于 2008-1-19 09:34:02 | 显示全部楼层
不会吧,我很早就按www.gentoo.org上那篇升级howto升级了,没什么问题啊。
现在我的pam是0.99.9.0,一直很正常的......
回复 支持 反对

使用道具 举报

发表于 2008-1-19 12:39:09 | 显示全部楼层
flameeyes是我见过的最认真负责的Gentoo dev....
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-19 14:38:51 | 显示全部楼层
拜托4楼给个链接和说明好吗?
回复 支持 反对

使用道具 举报

发表于 2008-1-19 14:49:15 | 显示全部楼层
这好像是很长时间的事情了,我升级的0.99也遇到点问题的,看看文档,照着做就行了。只是不能通过ssh去升级。
sys-libs/pam
     Available versions:  0.99.8.1-r1 0.99.9.0 {audit cracklib elibc_FreeBSD elibc_glibc nls selinux test vim-syntax}
     Installed versions:  0.99.9.0(12时29分56秒 2007年11月19日)(cracklib elibc_glibc nls selinux -audit -elibc_FreeBSD -test -vim-syntax)
     Homepage:            http://www.kernel.org/pub/linux/libs/pam/
     Description:         Linux-PAM (Pluggable Authentication Modules)
回复 支持 反对

使用道具 举报

发表于 2008-1-19 15:25:53 | 显示全部楼层
你不是看过那个howto么?
http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml
只能这么清楚了
而且你不一定需要看这篇文章,我记得我好像就什么也没有做,原因flameeyes已经解释了:
if you installed your system after about September 2005, the upgrade path should be quite painless, and this guide will just be an interesting read to you. If your system is older, but you upgraded regularly, and didn't configure PAM manually, you should also be fine, as most of the configuration files would have been upgraded already for you.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-19 15:52:34 | 显示全部楼层
zhllg:呵呵,别生气。您那段我是看得懂的,我不懂这个在哪儿改:
Code Listing 1.2: Replace pam_stack usage with the include directive

(The old configuration)
auth    required     pam_stack.so    service=system-auth

(Replace it with this)
auth    include      system-auth

Important: There are four facilities in PAM configuration: auth, account, password and session. You need to update the configuration files for all of them, not just auth.

Please note that you might also need to reorder the calls when making this change, as sometimes modules like pam_nologin were listed after pam_stack, even though they now need to be listed before the include directive.

Code Listing 1.3: Handling multiple-modules with pam_stack

(Old way)
auth    required     pam_stack.so    service=system-auth
auth    required     pam_nologin.so

(New way)
auth    required     pam_nologin.so
auth    include      system-auth
:sorry
回复 支持 反对

使用道具 举报

发表于 2008-1-19 16:40:18 | 显示全部楼层
你可以自己找点pam的资料看看
比如man pam
至少你可以qlist pam看看pam里包含哪些文件
然后看看哪些是要改的
给你个提示,看看/etc/pam.d
回复 支持 反对

使用道具 举报

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

本版积分规则

快速回复 返回顶部 返回列表