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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· AI与.NET技术实操系列(六):基于图像分类模型对图像进行分类
2022-12-27 fc设备识别使用