in reply to Password file manipulation
See the core functions documented under getpwent, getpwnam, getpwuid and sugared by User::pwent.
They take care of shadow files, and other authentication schemes.
After Compline,Zaxo