查看文件/etc/pam.d/su,将wheel行全部加上注释
auth required pam_wheel.so use_uid #这一行要求了只有wheel组的用户才能通过su登录,如果不注释掉该内容,将用户添加到wheel组也可以解决su 登录问题
]# grep wheel /etc/pam.d/su # 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 required pam_wheel.so use_uid
其他
]# grep SU_WHEEL /etc/login.defs # Currently SU_WHEEL_ONLY is not supported
标签:wheel,use,uid,permission,su,auth,linux,pam From: https://www.cnblogs.com/santia-god/p/17930296.html