in reply to getpwnam() password

Have you tried CfgTie::TieShadow from CPAN?

Search the CPAN modules for "shadow", and let me know how it works!