I have a FreeBSD Server and a strange problem. Everytime some tries to change a password he gets this
~$ passwd
Changing local password for <USER>
Old Password:
passwd: sorry
The root account is unaffected.
I can't find any clues in the logs. I don't use LDAP for authentification and the server is running in a jail.
The source code was so short and simple that it only took a moment to find the only place within FreeBSD's
passwd
utility where that particular message is printed.Specifically, it occurs when PAM has failed to authenticate the user. In other words, one of these things:
passwd
doesn't have the proper permissions; it must be setuid root.My bets are on 2.
This might be a problem with NIS. Check nsswitch.conf and disable the use of NIS or YP (Yellow Pages). Then see whether the problem has gone away.