In case, if you come across such error message saying -
/bin/login: error while loading shared libraries: libpam.so.0
Here are the steps to reinstall the corrupted library :
STEP 1 : To find out which package the corrupted library belongs to, use the below command:
# yum provides \*/[file_name]
To identify the corrupted library and find the package it originally belongs:
# yum provides \*/libpam.so.0
...
pam-1.1.8-22.el7.i686 : An extensible library which provides authentication for
: applications
Repo : base
Matched from:
Filename : /usr/lib/libpam.so.0
STPE 2 : We need to reinstall pam-1.1.8-22.el7.i686 in order to reinstall the corrupted library