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?
Thanks! I couldn't get it to work from the command line using "--option=nmbd:socket-dir=${NMBD_SOCKET}" But adding it to the configuration file worked. Is the option missing from nmbd?
It'll work once you use the correct syntax: --option="nmbd:socket dir=/tmp/bla" works for me.