To make sure I get it right - in which directory is names.tdb created? Which permissions are needed for /etc/samba/smbd.tmp/msg/msg.* - rw or rwk? The easiest way is to attach the audit.log, because that ensures I get the permissions correct ;-)