I've recently updated my server to CentOS 7.4 and the result seems to be a broken smb. It has been working fine for a couple of years. The update installed Samba 4.6.2 and the CentOS forum has been unable to help me. I have not change my config file also in years but here is the relevant clause, FWIW: Code: # Web directory access [webdir] valid users = dap,@apache writeable = yes browsable = yes path = /var/www hosts allow = 192.168.0.0/255.255.255.0 I am seeing this in the smb.log file: Code: [2017/09/22 14:13:55.673196, 0] ../lib/util/access.c:361(allow_access) [2017/09/22 14:13:55.675183, 3] ../source3/lib/util_procid.c:54(pid_to_procid) pid_to_procid: messaging_dgm_get_unique failed: No such file or directory Denied connection from 192.168.122.1 (192.168.122.1) [2017/09/22 14:13:55.675305, 1] ../source3/smbd/process.c:3819(smbd_add_connection) Connection denied from ipv4:192.168.122.1:48214 to ipv4:192.168.122.1:445 [2017/09/22 14:13:55.677466, 3] ../source3/smbd/server_exit.c:246(exit_server_common) Server exit (connection denied) And the log.hostname file (windows7) from where I have a mapped drive: Code: [2017/09/22 14:00:29.083451, 0] ../lib/tdb_wrap/tdb_wrap.c:64(tdb_wrap_log) tdb(/var/lib/samba/lock/smbXsrv_open_global.tdb): tdb_expand overflow detected current map_size[4294967295] size[264]! [2017/09/22 14:00:29.083510, 1] ../source3/smbd/smbXsrv_open.c:736(smbXsrv_open_global_store) smbXsrv_open_global_store: key '5CE22FA5' store - NT_STATUS_UNSUCCESSFUL [2017/09/22 14:00:29.083529, 0] ../source3/smbd/smbXsrv_open.c:897(smbXsrv_open_create) smbXsrv_open_create: global_id (0x5ce22fa5) store failed - NT_STATUS_UNSUCCESSFUL [2017/09/22 14:00:29.083556, 0] ../source3/smbd/smbXsrv_open.c:1145(smbXsrv_open_close) smbXsrv_open_close(0x5ce22fa5): failed to delete global key '5CE22FA5': NT_STATUS_NOT_FOUND [2017/09/22 14:00:29.083595, 0] ../source3/smbd/smbXsrv_open.c:799(smbXsrv_open_destructor) smbXsrv_open_destructor: smbXsrv_open_close() failed - NT_STATUS_NOT_FOUND [2017/09/22 14:00:29.083628, 3] ../source3/smbd/smb2_server.c:3097(smbd_smb2_request_error_ex) smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_UNSUCCESSFUL] || at ../source3/smbd/smb2_create.c:293 [2017/09/22 14:00:29.089959, 0] ../lib/tdb_wrap/tdb_wrap.c:64(tdb_wrap_log) tdb(/var/lib/samba/lock/smbXsrv_open_global.tdb): tdb_expand overflow detected current map_size[4294967295] size[264]! [2017/09/22 14:00:29.089992, 1] ../source3/smbd/smbXsrv_open.c:736(smbXsrv_open_global_store) smbXsrv_open_global_store: key '2D203035' store - NT_STATUS_UNSUCCESSFUL [2017/09/22 14:00:29.090007, 0] ../source3/smbd/smbXsrv_open.c:897(smbXsrv_open_create) smbXsrv_open_create: global_id (0x2d203035) store failed - NT_STATUS_UNSUCCESSFUL [2017/09/22 14:00:29.090034, 0[2017/09/22 14:17:43.153702, 2] ../source3/smbd/service.c:1098(close_cnum) Obviously this update changed something but I don't know what any of this means or how to troubleshoot it. Can someone point me in the right direction? TIA.
Hi, I'm not too sure if this would help but I'm running the same version of CentOS 7.4.1708 with Samba 4.6.2 and it seems to be working fine for me (although it wasn't an upgrade I did but rather a new install). The only difference I have in my smb.conf file is the [global] directive which yours doesn't seem to have. Here is a copy of my smb.conf file: ================== [global] workgroup = SAMBA unix charset = utf8 security = user [Work] comment = FileServer path = /path/to/folder/Work guest ok = no valid users = user force user = user writeable = yes browsable = yes inherit permissions = yes inherit acls = yes ea support = yes vfs objects = catia fruit streams_xattr wide links = no follow symlinks = yes =================== Failing that and if you're not getting anywhere with a solution, perhaps you could try reinstalling SAMBA? Just a thought... Kind Regards GMSS
Thanks for the reply. I have a global directive but I didn't post it because I didn't think it was relevant. Mine is similar to yours and differs only in the workgroup name. I guess I will try a remove/install.
A remove and install fixed it. Thanks again. As a side note something odd happened. When I ran 'yum update' there where none. However, when I installed Samba, windbind was updated as a pre-req (not installed as it was already installed). I suspect that may be there was something funky about the original update to 7.4 and that was the problem.