Unable to change the passwd

bash-3.00# passwd sami
New Password:
Re-enter new Password:
Dec 14 00:07:43 hack passwd[26474]: [ID 301508 auth.alert] passwdutil: crypt_gensalt Invalid argument
passwd: Unexpected failure. Password database unchanged.
Permission denied

i got this error while i am change the user(sami) passwd.

Not sure. I've seen this issue before when multiple auth stacks are in play and something isn't quite right either in pam or nsswitch.

can u please give full details. please provide full proceed details

even i also encountered with the same problem....
try this:

#cp /etc/nsswitch.files /etc/nsswitch.conf