[Samba] Re: Moving samba PDC to new machine (same name?)

simo idra at samba.org
Tue Feb 28 16:45:26 GMT 2006


On Tue, 2006-02-28 at 09:21 -0600, Paul Smith wrote:
> Thanks for the link.
> 
> How does this look?
> 
> OLDSERVER:
> Stop Samba.
> Backup smb.conf, smbpasswd, passdb.tdb and secrets.tdb from /etc/samba
> Backup *.tdb from /var/lib/samba
> Make note of the users/groups UID/GIDs
> 
> NEWSERVER:
> Power up server
> Change hostname to OLDSERVER
> Install latest Samba
> recreate users/groups with same UID/GID as the old server
> restore backed up files (smb.conf, smbpasswd, passdb.tdb and secrets.tdb
> from /etc/samba and *.tdb from /var/lib/samba)
> Recreate shared directories
> Run testparm
> Start Samba
> Check domain SID is the same as the old one

Seem pretty much all you need to do.

> Does that handle all the group mappings?  I guess they're in the tdb
> files?

group_mapping.tdb

> The old server is Suse and the new server will be debian, for what it's
> worth.

Some paths change between distribution, be sure you put the tdb files in
the right places for Debian.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org



More information about the samba mailing list