Samba configuration files can be set anywhere your administrator want you to have them.
/usr/local/samba/
is the path where samba can be installed.
- smb.conf is one of the configuration files, along with private/secrets.tdb or username.map
You can launch your samba with a:
smbd -D -s /myPath/smb.conf
The two locations (samba installation and samba configuration paths) can be completely separate.
-D
If specified, this parameter causes the server to operate as a daemon. That is, it detaches itself and runs in the background, fielding requests on the appropriate port. Operating the server as a daemon is the recommended way of running smbd for servers that provide more than casual use file and print services. This switch is assumed if smbd is executed on the command line of a shell.
-s <configuration file>
The file specified contains the configuration details required by the server. The information in this file includes server-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide.