- 论坛徽章:
- 3
|
[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 ~]#
你可以看下你的/etc/pam.d/su下的配置,可以看下最简单的就是把auth sufficient pam_wheel.so trust use_uid的信任组sufficient跳转条目注释掉就可以了
|
|