Linux登录出现modle is unknow

一、问题描述

登录linux系统发现控制台无法登录,即使输入正确用户名和密码,也无法登录,回车看到有一个错误“module is unknow”。

但是,ssh可以正常登录

二、解决办法

ssh登录,然后注释掉

session required /lib/security/pam_limits.so

改为

session required pam_limits.so
[root@lxy-nfs pam.d]# cat login
#%PAM-1.0
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
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      system-auth
-session   optional     pam_ck_connector.so
#session required /lib/security/pam_limits.so
session required pam_limits.so

然后重启,登录,正常。

资源链接:

了解和配置PAM

posted @ 2015-02-13 09:29  starof  阅读(1255)  评论(2编辑  收藏  举报