The Samba-Bugzilla – Bug 11884
nmbd cannot override socket-dir at init time
Last modified: 2016-06-06 21:47:04 UTC
It's possible to define a prefix, localstatedir or sockets-dir at build time, but it's impossible to override those values when launching nmbd, leading to the following problem when launching in an environment which is different from the one defined when Samba was compiled :
mkdir failed on directory /var/run/samba/nmbd: No such file or directory
ERROR: nb_packet_server_create failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
STATUS=daemon failed to start: NMBD failed to setup packet server., error code 13
Can you try setting the (undocumented) nmbd:socket dir option?
I couldn't get it to work from the command line using
But adding it to the configuration file worked.
Is the option missing from nmbd?
It'll work once you use the correct syntax:
works for me.