只有特定用户才能执行su命令
# usermod -G wheel rocky
Now open /etc/pam.d/su PAM config file:
# vi /etc/pam.d/su
Append line as follows:
auth required /lib/security/pam_wheel.so use_uid
OR
auth required pam_wheel.so use_uid
来源:oschina
链接:https://my.oschina.net/u/4406491/blog/4318552