Disable su for users

Uncomment the following line to only allow users in the “wheel” group to be able to su :

Edit /etc/pam.d/su :

# Uncomment the following line to require a user to be in the "wheel" group. auth required /lib/security/$ISA/pam_wheel.so use_uid




Thanks for reading this post!


If you found an issue in this article, you can create an issue on Github.

If you have a comment or question, please drop me a line below!