[Samba] Migrate from one server (samba3) to a new one (samba4)

Marc Muehlfeld mmuehlfeld at samba.org
Fri Jun 6 09:39:36 MDT 2014

Am 06.06.2014 07:39, schrieb Marc Muehlfeld:
> Am 05.06.2014 22:43, schrieb Sonic:
>> On Thu, Jun 5, 2014 at 3:33 PM, Marc Muehlfeld <mmuehlfeld at samba.org> wrote:
>>> If you want to do the classicupgrade on a new host, then simply shutdown
>>> Samba on the old server and copy the databases listed in the Howto and
>>> your smb.conf + /etc/group to the new server. Migrating from tdbsam is
>>> quite simple. Nothing more should be needed.
>> Aren't the users and machine accounts in /etc/passwd also needed?
> If you use ldapsam as backend, like the OP (sorry, I read tdbsam), then
> you don't need /etc/group, as well. Then everything is taken from LDAP.
> I'm not 100% sure about your passwd question. The users are taken from
> the Samba backend. But I'm not sure at the moment, if tdbsam stores the
> UIDs and homepath, too. If it does, then passwd would not be necessary.
> Maybe if not, then the new users get only Windows (SID, etc.) accounts -
> what is no problem if you don't require UIDs, etc. for unix services and
> only have pure Windows users.
> Let me give this a try this evening in my test environment. If it's
> required, I'll fix this in the HowTo.

OK. I've checked this. The UIDs are not in the tdbsam database, too. So
if you don't copy the passwd, when you use tdbsam or smbpasswd backend,
then your UIDs, home directories, etc. are not imported. After the
migration you have a pure Windows account then.

I'll add this to the Upgrade HowTo later.


More information about the samba mailing list