➥ DISABLE PAM on CENTOS

If you have problems with ERROR: "failed to open PAM security session: Success", and you want to disable PAM.
Try this:

1. Delete all files in /etc/pam.d
2. Create nano /etc/pam.d/other with the following contents:

=======================================
auth sufficient pam_permit.so
account sufficient pam_permit.so
password sufficient pam_permit.so
session sufficient pam_permit.so
=======================================


3. /etc/init.d/crond restart