11.2.0.3的RAC ,使用root切换到grid用户时,老是要求我输入密码
节点1是正常的,节点2有问题# su - grid
密码:
系统是64位的RHEL6.1,有人说是/etc/pam.d/login文件的配置问题,这里我也贴出来
# cat /etc/pam.d/login
#%PAM-1.0
auth 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 pam_limits.so
这个是节点1的配置文件
# cat /etc/pam.d/login
#%PAM-1.0
auth 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 /lib64/security/pam_limits.so
# su - grid
$
节点1切换root用户没有问题
你在两台服务器分别执行
strace -o switch01.log su - grid
strace -o switch02.log su - grid
然后把switch01.log和switch02.log上传。 visudo
看看是否里面配置文件修改了 cat /etc/pam.d/su
auth sufficient pam_rootok.so
注掉试试
页:
[1]