User Tools

Site Tools


updating_samba

Updating Samba

Introduction

This is a general documentation on how to update a Samba installation.

Note: Samba 4 is just the next release after 3.6. Samba 4 doesn't mean “Active Directory only”. You can simply update your NT4-style domain to the latest 4x version, like you had installed updates in the past.

If the type of installation (Active Directory Domain Controller, NT4-style PDC, Member Server) does not change, you can simply follow the steps below to update.

Update process


The following steps are the same, regardless if you update a Samba AD DC, Samba NT4-style PDC or Samba Member Server.

  • Stop all Samba services.
  • Read all release notes of versions since the one you are updating from! They will contain imporant and useful information, like parameters that have changed.
  • Install the latest version over your existing one.
    • If you compile Samba from source, download the latest version from http://www.samba.org or from http://softlib.uclv.edu.cu/softlib/Software/Samba/. If you use the same “configure” options, than for your previous version, Samba will be installed over the old binaries, tries to find its databases on the same place, etc. But always check if some configure options had changed and need to be adapted!
    • If you use packages, like from SerNet, check out the packagers information on how to install. You can check Samba4 SerNet Repository Wiki to configure SerNet repositories.
  • Start Samba. You only have to start the same processes, like you did before.
    • Domain Controller (DC): samba
    • NT4-style PDC: smbd and nmbd
    • Member Server: smbd, nmbd and winbind (if you use it)
  • Check your Samba logs for errors and problems:
# tail -f /usr/local/samba/var/log.samba -f /usr/local/samba/var/log.smbd
  • Test your new installed version. You can follow the steps described in Testing Samba wiki page. Keep in mind that the steps in that wiki page the majority are for Samba4 as Active Direcotory Domain Controller.
updating_samba.txt · Last modified: 2020/04/10 17:38 (external edit)