Reinstall file from RPM

rpmyum

So I need to install the original /etc/pam.d/system-auth-ac file from the authconfig RPM. I attempted to do so by "reinstalling" the authconfig package/rpm like so:

mv /etc/pam.d/system-auth-ac ~/
rpm -e --justdb --nodeps authconfig
yum install authconfig

The files are not re-installed though. What needs to be done to get yum to reinstall the files?

UPDATE:

Did an strace on the yum install and it appears that the file "/etc/pam.d/system-auth-ac" is opened by the rpm install but not written to. Looking further it appears that the file is generated once the authconfig binary is executed.

So now the problem is no longer RPM related. I need to figure out what the default command to authconfig looks like for RH5.6 so I can get a normal system-auth-ac file.

Best Answer

Try this:

yum -y install yum-utils
yumdownloader authconfig
rpm -Uvh --replacepkgs authconfig*

EDIT:

Try this:

system-config-authentication
Related Topic