免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4445 | 回复: 3

请教一个Linux-PAM的问题哈 [复制链接]

论坛徽章:
0
发表于 2010-05-08 18:19 |显示全部楼层
描述可能长一点,大侠耐心点哈。
在/etc/pam.d文件是各个服务的PAM验证服务文件吧,比如login文件吧,我截取了一段

atd                           newrole                       su
authconfig                    other                         sudo
authconfig-gtk                passwd                        sudo-i
authconfig-tui                password-auth                 su-l
chfn                          password-auth-ac              system-auth

能看到主要有三列,但是我看网上很多关于PAM的资料提到,验证服务文件格式是:
service  module_type   control_flag    module_path    options

好像有点出入啊,我用的是fedora 11.

论坛徽章:
0
发表于 2010-05-08 18:27 |显示全部楼层
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth       include      system-auth
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
session    optional     pam_console.so

补充一下啊,刚才截取的好像有问题,重新截取了一段,

为什么资料上说是5列,而实际看到的只有3列呢??

论坛徽章:
0
发表于 2010-05-08 18:58 |显示全部楼层
刚又在网上查看了The Linux-PAM Guides

里面提到:
The syntax of each file in /etc/pam.d/ is similar to that of the /etc/pam.conf file and is made up of lines of the following form:

type  control  module-path  module-arguments
   
The only difference being that the service-name is not present

就算这样,也不应该只有3列啊,也应该是4列啊。

论坛徽章:
0
发表于 2010-05-08 19:00 |显示全部楼层
而且control  那一列里面还有个include。

include表示什么意识啊??
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP