ok, one more question before I hit this tonight. Does the copy have to be done EVERYTIME the system is booted via the go script, or does it stay once put in? I'm assuming everytime you reboot, as the smdb is copied from the flash each time.
You are correct, The copy to "/usr/sbin" has to be done every time the system is re-booted. That is because every time you reboot the "/usr/sbin" directory is created in RAM, and is initially populated with the version of smbd that is contained in the "bzroot" file. (bzroot is a form of a compressed archive, somewhat similar to a zip file)
When unRaid is booted, the bzroot file is "unzipped" into the in-memory filesystem. That puts the buggy version of smbd into place in /usr/sbin/smbd. As part of its start-up, unRaid also starts "smbd" running.
When the "go" script executes, the extra lines we added stops the"smbd" process, copies the newer "smbd" file from the flash drive to /usr/sbin/smbd, and then re-starts "smbd" (as part of samba)