linux su 所有用户,permission denied

查看文件/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

 

posted @ 2023-12-27 12:10  咿呀哒喏  阅读(503)  评论(0编辑  收藏  举报