/etc/pam.d/su default PAM configuration file
/etc/pam.d/su-l PAM configuration file if --login is specified
/etc/default/su command specific logindef config file
/etc/login.defs global logindef config file
仅猜测,可能和pam模块有点关系,可以看一下你这四个相关设置和普通主机有什么区别。作者: dzminglong 时间: 2014-08-29 15:22
你所说的普通账户随便su - root不用输密码,在没有特意更改设置的前提下,是不可能的作者: Shell_HAT 时间: 2014-09-01 13:22 http://blog.chinaunix.net/uid-17176286-id-4448675.html作者: 李满满 时间: 2014-09-01 15:36
[root@Oracle ~]# cat /etc/pam.d/su|grep wheel
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
auth sufficient pam_wheel.so trust use_uid
groupadd wheel
useradd yhsafe &&echo "yinhe@123"|passwd --stdin yhsafe && history -c
usermod -G wheel yhsafe
[root@Oracle ~]# su - yhsafe
[yhsafe@Oracle ~]$ su - root
[root@Oracle ~]#