[Samba] Linux-to-Linux Samba Migration
Gary Dale
garydale at torfree.net
Tue Mar 28 20:44:42 GMT 2006
I did something similar, as have a lot of people, when I moved from an
NT domain to a Samba 3 domain. I suspect that the Samba to Samba
transfer will be easier.
I'm no expert, but I believe the important thing is to transfer your
"passdb backend = tdbsam:/etc/samba/passdb.tdb" file and keep the
workgroup name the same. If you were switching from NT, you would have
to do a vampire-mode transfer from the NT PDC. Here, I'd suspect that a
simple file copy will work. Also, you will probably have to locate and
copy secrets.tdb as well.
Also, rename your old server, or take it offline, and name the new one
the same as the original name of the old server. This will prevent
having to redo all the network shares on the workstations. You can do
this on the new server by using the netbios alias feature of Samba or
just change the netbios name.
My guess is that your current smb.conf file should work directly on your
new server, but check it against the default one on your new server anyway.
Tom Smith wrote:
> I'm working on migrating from Mandrake 10.0 to Ubuntu 5.10. The last,
> and probably most important, service to be moved is Samba...
>
> The setup is fairly simple, here is is:
>
> - Mandrake Linux 10.0
> - Samba 3.0.10
>
> Here's the "global" Samba configuration of my server:
>
> [global]
> workgroup = <workgroup name>
> server string = <string>
> passdb backend = tdbsam:/etc/samba/passdb.tdb
> passwd program = /usr/bin/passwd %u
> unix password sync = Yes
> time server = Yes
> load printers = No
> add user script = /usr/sbin/useradd -m %u
> delete user script = /usr/sbin/userdel -r %u
> add group script = /usr/sbin/groupadd %g
> delete group script = /usr/sbin/groupdel %g
> add user to group script = /usr/sbin/usermod -G %g %u
> add machine script = /usr/sbin/useradd -s /bin/false -d
> /dev/null %u
> logon script = scripts\%U.bat
> logon drive = H:
> logon home = \\%N\%U\profile.w98
> domain logons = Yes
> wins support = Yes
> ldap ssl = no
> idmap uid = 15000-20000
> idmap gid = 15000-20000
> admin users = root, tom
> create mask = 0770
> directory mask = 0770
> veto oplock files = /*.xls/
>
> Transferring the files and the associated shares is the easy part.
> What I'm concerned about is getting the domain and user/group
> information to transfer without having to reconfigure all of the
> workstations or all of the user/group accounts on the new server.
>
> I looked to see if I could find such a guide for doing this but wasn't
> able to--not sure if maybe I'm searching for the wrong terms or whatnot.
>
> Any suggestions offered and/or pointers to documentation would be
> greatly appreciated.
>
> Thanks in advance for your help.
>
> ~ Tom
More information about the samba
mailing list