[Samba] Syncing Sysvol

Joachim Lindenberg
Tue, 16 Jul 2019 16:44:52 -0000

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