cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

os:linux:user:su.html



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
  • wheel group only to be able to su.
  • Other than the wheel group is not accustomed to a non-root user with su.


deny only root user with su without wheel group

auth required /lib/security/$ISA/pam_wheel.so use_uid root_only
  • wheel group only get used to root su. .
  • Other than the wheel group , get used to other users in su command.



os/linux/user/su.html.txt ยท Last modified: 2017/05/14 by admin

Page Tools