This global option identifies the location of the encrypted password database. By default, it is set to
/usr/local/samba/private/smbpasswd. You can override it as follows:
[global]
smb passwd file = /etc/smbpasswd
This location, for example, is common on many Red Hat distributions.