Table of Contents

su - How to Configure su in Linux

Configuration

/etc/pam.d/su

no limit

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


deny all user with su without wheel group

auth required /lib/security/$ISA/pam_wheel.so use_uid


deny only root user with su without wheel group

auth required /lib/security/$ISA/pam_wheel.so use_uid root_only