smbd: matchname: host name/address mismatch
This is a question & answer in one post, but since this forum is searchable, maybe I can save someone else a surprise.
On Sep 24, Yum updated bind and samba, and suddenly my samba service stopped working. From Windows, I'd get a password prompt when I'd try to use a share, and entering the password several ways didn't help.
In my server messages.log, I saw several lines like this:
Sep 24 19:31:27 Nicaea smbd[2869]: [2009/09/24 19:31:27, 0] lib/util_sock.c:1685(get_peer_name)
Sep 24 19:31:27 Nicaea smbd[2869]: Matchname failed on Thrace ::ffff:10.0.0.3
Not terribly helpful, since Thrace is 10.0.0.3. For a while I thought this was a new IPV6 problem, but disabling IPV6 (modprobe/blacklist) didn't fix it; that just hid the message.
So I thought maybe the passwords had been reset with the samba update:
# smbpasswd quip11
New SMB password:
Retype new SMB password:
Failed to find entry for user quip11.
Huh!? No entry for my username? This is new. The samba update didn't just reset my password; it removed the user! Fortunately it's easy to add a samba user with
# smbpasswd -a quip11
New SMB password:
Retype new SMB password:
Added user quip11.
And now the samba share works again.
-Q
|