[Samba] Time synchronization problem. Chrony, ntp
Rowland Penny
rpenny at samba.org
Sat Jan 18 11:30:21 UTC 2025
On Sat, 18 Jan 2025 10:27:37 +0000
Luis Peromarta via samba <samba at lists.samba.org> wrote:
> This works. Hopefully it’ll help you.
>
> http://samba.bigbird.es/doku.php?id=samba:install-chrony
>
Have I ever said that I hate Windows ?
Well, just in case I didn't:
I HATE WINDOWS.
Something as simple as providing a time server via DHCP doesn't appear
to work very well (if at all) on Windows, it seems you have to use a
GPO.
I only run one Windows 10 computer and that is in a VM and only when I
start it to test something.
Well I started it to check its 'time' and found out that it wasn't
using my pdc_emulator (address supplied by dhcp), it was using its
internal clock. All my Linux clients do use the time server supplied
via dhcp.
To get it to use the pdc_emulator, I had to do this:
open cmd prompt on the Windows PC and run as administrator
net stop w32time
then:
w32tm /config /syncfromflags:manual /manualpeerlist:"rpidc1.samdom.example.com"
net start w32time
Running 'w32tm /query /status' still showed the 'local' clock as time source, so:
w32tm /resync
To force a sync from the pdc_emulator
Running 'w32tm /query /status' again, now showed the pdc_emulator as
the time source.
Did I say that I hate Windows ?
Rowland
More information about the samba
mailing list