Ubuntu设置su无需密码切换至root
发行版本:Ubuntu 22.04.1
① 创建 wheel 用户组: groupadd wheel
② 将普通用户加入 wheel 用户组: usermod -G wheel <user_name>
③ 编辑 pam 的 su 配置文件 /etc/pam.d/su
取消 auth sufficient pam_wheel.so trust
的注释
④ 测试普通su root 时是否无需输入密码
本文来自博客园,作者:LoremMoon,转载请注明原文链接:https://www.cnblogs.com/hello-cnblogs/p/17546931.html