Enachioaie Alexandru
2007-Feb-27 07:52 UTC
[Samba] Nmbd crash with failure to open wins.tdb
Hello, I've found this issue reported only once before but no real answer was provided/found. I am trying to migrate from an old 2.0.7 server, but the bundled install 3.0.24 on FC6 is giving me major pain. Putting aside the actual configuration and user migration which I need to figure out, the problem is that nmbd refuses to start with the following errors in the log: [2007/02/26 14:05:26, 0] lib/messages.c:message_init(127) ERROR: Failed to initialise messages database [2007/02/26 14:05:26, 0] nmbd/nmbd_winsserver.c:initialise_wins(580) initialise_wins: failed to open wins.tdb. Error was Permission denied I've checked the permission on the locks directory, I've tried chowning, chmodding 777, nothing seems to fix this, and I can't figure out why. Here's relevant file stats: [root@srv-tux ~]# ls -al /etc/samba/ total 80 drwxr-xr-x 4 root root 4096 Feb 26 13:31 . drwxr-xr-x 90 root root 12288 Feb 27 04:02 .. -rw-r--r-- 1 root root 20 Feb 8 00:53 lmhosts drwxr-xr-x 4 root root 4096 Feb 27 08:17 locks dr-x------ 2 root root 4096 Feb 26 14:00 private -rw------- 1 root root 8192 Feb 23 14:19 secrets.tdb -rw-r--r-- 1 root root 5444 Feb 26 14:15 smb.conf -rw-r--r-- 1 root root 97 Feb 8 00:53 smbusers [root@srv-tux ~]# ls -al /etc/samba/locks/ total 216 drwxr-xr-x 2 root root 4096 Feb 27 08:45 . drwxr-xr-x 4 root root 4096 Feb 26 13:31 .. -rw------- 1 root root 8192 Feb 27 08:45 account_policy.tdb -rw-r--r-- 1 root root 40200 Feb 27 08:45 brlock.tdb -rw-r--r-- 1 root root 8192 Feb 27 08:45 connections.tdb -rw-r--r-- 1 root root 696 Feb 27 08:45 gencache.tdb -rw------- 1 root root 8192 Feb 27 08:45 group_mapping.tdb -rw-r--r-- 1 root root 40200 Feb 27 08:45 locking.tdb -rw------- 1 root root 696 Feb 27 08:45 messages.tdb -rw------- 1 root root 8192 Feb 27 08:45 ntdrivers.tdb -rw------- 1 root root 696 Feb 27 08:45 ntforms.tdb -rw------- 1 root root 8192 Feb 27 08:45 ntprinters.tdb -rw------- 1 root root 16384 Feb 27 08:45 registry.tdb -rw-r--r-- 1 root root 696 Feb 27 08:45 sessionid.tdb The even weirder part is that when I manually start nmbd (eg: from cli using nmbd -D, it writes to wins.tdb just fine and starts up). Also if there's any details pertaining to proper migration please do let me know because I have not had extensive experience with samba and this is kind of urgent (yes, I have googled for information but it is really scarce pertaining migration). -- Best regards, Enachioaie mailto:alexandru.e@gmail.com