[Samba] Chrony install and setup for ubuntu 25.04
Rowland Penny
rpenny at samba.org
Sun Jun 8 09:24:38 UTC 2025
On Sun, 8 Jun 2025 13:14:32 +1200
Daniel Christie via samba <samba at lists.samba.org> wrote:
> Then the order of the steps on the samba website should be changed
> maybe, why would it talk about setting up chrony first before doing
> the samba and ad join stuff.
Because it doesn't matter, you can set up the time server before Samba
is started for the first time and the time server will then work
correctly.
I have added a note to the wikipage.
> I wanted to use an distro that had a higher version of samba in it. i
> understand about the lifecycles but was just going to do the upgrades
> when its required.
> CAn you please help suggest the correct process for upgrading the
> forrest and domain level?
OK,
Backup your Samba AD domain with samba-tool, as irreversible changes will be made.
Upgrade Samba to at least 4.20.0 on all DCs.
Add this parameter to the [global] section of /etc/samba/smb.conf on every Samba AD DC:
ad dc functional level = 2016
Restart Samba service on all DCs.
Now run the following commands, these will upgrade the schema and functional level:
samba-tool domain schemaupgrade --schema=2019
samba-tool domain functionalprep --function-level=2016
samba-tool domain level raise --domain-level=2016 --forest-level=2016
Just in case, check the directory database for errors:
samba-tool dbcheck --cross-ncs --fix --yes
You may have to run that command twice to fix any errors.
Rowland
More information about the samba
mailing list