只有特定用户才能执行su命令

只有特定用户才能执行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



你可能感兴趣的:(Wheel,su限制)