[Samba] Syncing Sysvol

Joachim Lindenberg samba at lindenberg.one
Tue Jul 16 16:44:52 UTC 2019


Jonathon suggested in https://lists.samba.org/archive/samba/2019-July/224347.html to set non PDCs to readonly. Actually this could be done automatically set when generating smb.conf during join as (secondary) DC. Then the script could also just exit if sysvol is not readonly.

 

Rowland, 

w.r.t. to my initial script:  

- you fixed the issue of that I used $pdc and $peer inconsistently, 

- because of https://lists.samba.org/archive/samba/2019-July/224354.html it does not work in my network. I suggest to either stick to my variant of identifying the PDC or adding a check as well,

- writing about error checks: what about testing availability of smbclient and other prerequesites if any,

- I had to add --- | grep -v " blocks of size " --- after smbclient… dir *” because replication was triggered due to other file system activity,

Nevertheless you write scripts better than I do, appreciated!

 

Thanks, Joachim

 



More information about the samba mailing list