Hi Bob, Ah, now I see the the core of this problem. This is the main problem. You smbd –b output Paths: SBINDIR: /usr/local/samba/sbin BINDIR: /usr/local/samba/bin CONFIGFILE: /usr/local/samba/etc/smb.conf <<<<<<<<<< LOGFILEBASE: /usr/local/samba/var LMHOSTSFILE: /usr/local/samba/etc/lmhosts LIBDIR: /usr/local/samba/lib MODULESDIR: /usr/local/samba/lib SHLIBEXT: so LOCKDIR: /usr/local/samba/var/lock And below in the email your telling that you config is in /etc/samba Due to this mismatch, the script is failing. The script is extracting the path from CONFIGFILE But yours is not there, its in /etc/samba I’ll think about howto implement this. One last question, can you test the original samba backup script also. For you, i already took the samba_backup script from the 4.5.1 source.tar.gz ( as stated here : https://wiki.samba.org/index.php/Backup_and_restore_an_Samba_AD_DC ) Its attached in the e-mail. ( list member follow the link here ) Greetz, Louis root at dtdc03:/etc/samba# ls /usr/local/samba/ bin etc include lib libexec private sbin share var My smb.conf file is at /etc/samba/ like yours. My samba installation is at /usr/local/samba as I have installed from source. Hope this helps. -- _______________________________ Bob Wooden of Donelson Trophy 615.885.2846 www.donelsontrophy.com "Everyone deserves an award!!"
On Wed, 23 Nov 2016 13:47:37 +0100 "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:> Hi Bob, > > > > Ah, now I see the the core of this problem. > > > > This is the main problem. > > > > You smbd –b output > > Paths: > SBINDIR: /usr/local/samba/sbin > BINDIR: /usr/local/samba/bin > CONFIGFILE: /usr/local/samba/etc/smb.conf <<<<<<<<<< > LOGFILEBASE: /usr/local/samba/var > LMHOSTSFILE: /usr/local/samba/etc/lmhosts > LIBDIR: /usr/local/samba/lib > MODULESDIR: /usr/local/samba/lib > SHLIBEXT: so > LOCKDIR: /usr/local/samba/var/lock > > > > And below in the email your telling that you config is in /etc/samba > > Due to this mismatch, the script is failing. >I suppose the question is, does Samba know that smb.conf isn't where it thinks it is ? Are the Samba binaries being started with the -s option ? Rowland
On 2016-11-23 06:55, Rowland Penny via samba wrote:> On Wed, 23 Nov 2016 13:47:37 +0100 > "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote: > >> Hi Bob, >> >> Ah, now I see the the core of this problem. >> >> This is the main problem. >> >> You smbd -b output >> >> Paths: >> SBINDIR: /usr/local/samba/sbin >> BINDIR: /usr/local/samba/bin >> CONFIGFILE: /usr/local/samba/etc/smb.conf <<<<<<<<<< >> LOGFILEBASE: /usr/local/samba/var >> LMHOSTSFILE: /usr/local/samba/etc/lmhosts >> LIBDIR: /usr/local/samba/lib >> MODULESDIR: /usr/local/samba/lib >> SHLIBEXT: so >> LOCKDIR: /usr/local/samba/var/lock >> >> And below in the email your telling that you config is in /etc/samba >> >> Due to this mismatch, the script is failing. > > I suppose the question is, does Samba know that smb.conf isn't where it > thinks it is ? > Are the Samba binaries being started with the -s option ? > > RowlandI need to look into this. I could be wrong but I thought I had setup a symlink between /etc/samba/smb.conf to /usr/local/samba/etc/smb.conf. I will review my notes to confirm what I did. I know that smb.conf IS located at /usr/local/samba/etc/ but, I also know that I can access it via /etc/samba/smb.conf to make adjustments. Hum-m-m-m . . . -- _______________________________ Bob Wooden of Donelson Trophy