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 @   咿呀哒喏  阅读(610)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· AI与.NET技术实操系列(六):基于图像分类模型对图像进行分类
历史上的今天:
2022-12-27 fc设备识别使用
点击右上角即可分享
微信分享提示