vim /etc/pam.d/su

将此行的注释打开

auth            required        pam_wheel.so use_uid

修改 /etc/login.defs

echo "SU_WHEEL_ONLY yes" >> /etc/login.defs

普通用户加入到wheel组才可以su,不然哪怕输入对root密码也不成功。

usermod -G wheel linyy

 

相关文章:

  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-02-07
  • 2021-06-19
猜你喜欢
  • 2021-08-15
  • 2022-12-23
  • 2021-05-22
  • 2021-06-14
  • 2021-12-05
  • 2021-12-13
  • 2022-12-23
相关资源
相似解决方案