I would like to customize my password expiration warnings. I figured PAM reads them from somewhere, but can't find from where. The question is relevant for both Ubuntu/Debian and Fedora/RHEL/CentOS.
Where does PAM read Warning: your password will expire in X days
from?
Thanks!
Account and password expiration information is contained in the
/etc/shadow
file. seeman shadow
for more information.As for the message string, they are hard coded in one (or possibly more) of the PAM object code modules. To change the messages, you'll have to change the source code for these PAM modules, recompile, and install the resulting binary.