本文为Linux服务器调教日常,不保证正确。
1. sshd配置:
https://www.cnblogs.com/byeyear/p/9289063.html
2. 禁止普通用户su
1. 编辑/etc/pam.d/su,去除下面行的注释:
auth required pam_wheel.so use_uid
2. 将允许su到root的用户加入wheel:
# usermod -G wheel your_user_name
本文为Linux服务器调教日常,不保证正确。
1. sshd配置:
https://www.cnblogs.com/byeyear/p/9289063.html
2. 禁止普通用户su
1. 编辑/etc/pam.d/su,去除下面行的注释:
auth required pam_wheel.so use_uid
2. 将允许su到root的用户加入wheel:
# usermod -G wheel your_user_name