禁止su

  sre

5fc8d074df1fe9668.jpg_fo742.png

(禁su)
1)usermod -G wheel ifly
2)vi /etc/pam.d/su
去掉这行的注释
auth required pam_wheel.so use_uid
3)在文件/etc/login.defs 中添加一行
vi /etc/login.defs
SU_WHEEL_ONLY yes
4)重启sshd
service sshd restart

LEAVE A COMMENT

Captcha Code