This chapter shows how to restrict people from su-ing to system and shared accounts even if they know the passwords. Example for Restricting su Access to root Create a new group for each set of users that are allowed to su to the root # groupadd rootmembers Add all users who are allowed to su to the root account to the new member groups created above. The following requirement will be configured: - Only the user named hari should be able to su to root - # usermod -G rootmembers hari Next add the three authentication lines highlighted in bold to the /etc/pam.d/su file as shown below: auth sufficient /lib/security/$ISA/pam_rootok.so auth required /lib/security/$ISA/pam_stack.so service=system-auth auth sufficient /lib/security/$ISA/pam_stack.so service=su-root-members auth required /lib/security/$ISA/pam_deny.so account required /lib/security/$ISA/pam_stack.so service=system-auth password required /lib/security/$ISA/pam_stack.so service=system-auth session required /lib/security/$ISA/pam
This is an attempt by me to explore articles and News related with Technology(especially IT),Film,Art,etc Actually this is my personal documentation area where I keep projects' documents and the Tutorials I have read through in the Internet. Have a look and let me know your opinion