[Samba] samba-tool domain backup online && --configfile

Tim Beale timbeale at catalyst.net.nz
Mon Jul 22 05:34:10 UTC 2019


On 22/07/19 5:05 PM, Joachim Lindenberg wrote:
> Hi Tim,
> then I believe there is a bug. I did not specify the option and it used /etc/smb.conf rather than the correct /etc/samba/smb.conf. I was running a local backup on DC with Louis build 4.10.6 on ubuntu 18.04.2.
> Shall I open a ticket?
> Best Regards, Joachim

Hmmm, the backup command uses the same logic as all the other samba-tool
commands. So if it's getting it wrong, then chances are other commands
are too.

Try running testparm and see what path that reports. I guess if you're
running the backup command as a user other than root/sudo, and that user
can't stat the /etc/samba/smb.conf file, then you'll just end up with
the default config in the backup file.

The default smb.conf path gets setup as part of the build, as it can
vary depending on the distro. I can't remember the build system magic
that does this off the top of my head...

The other thing to check is that you don't have SMB_CONF_PATH set, i.e.
echo $SMB_CONF_PATH




More information about the samba mailing list