Theo Band
2007-Apr-15 20:31 UTC
[CentOS] Migration from FC3 to Centos4.4 gives problems with Samba
Hi I have updated one of my servers from Fedora Core 3 to Centos. All services run fine except Samba. The Centos installation is fresh and I setup Samba in a similar way as I did before with Fedora. I copied the samba password file from the Fedora installation and also all user+machine accounts to the /etc/passwd|shadow etc. Problem I now have is that clients cannot find their server profiles when they try to logon (bath owner rights, or profile is unavailable). After some trial I found out that I can solve this issue by removing the XP client computer form the domain and then adding the client computer again. So it looks to me that the client machine is not seen properly by Samba. Is there a way to copy information from the old installation to the new Centos installation so that I don't have to re-join every individual computer to the domain again? Or is there a way I can do this with Samba? Thanks for any help or suggestions. Theo
Fabian Arrotin
2007-Apr-15 20:42 UTC
[CentOS] Migration from FC3 to Centos4.4 gives problems with Samba
On Sun, 2007-04-15 at 22:31 +0200, Theo Band wrote:> Hi > > I have updated one of my servers from Fedora Core 3 to Centos. All > services run fine except Samba. The Centos installation is fresh and I > setup Samba in a similar way as I did before with Fedora. I copied the > samba password file from the Fedora installation and also all > user+machine accounts to the /etc/passwd|shadow etc. > > Problem I now have is that clients cannot find their server profiles > when they try to logon (bath owner rights, or profile is unavailable). > After some trial I found out that I can solve this issue by removing the > XP client computer form the domain and then adding the client computer > again. So it looks to me that the client machine is not seen properly by > Samba. Is there a way to copy information from the old installation to > the new Centos installation so that I don't have to re-join every > individual computer to the domain again? Or is there a way I can do this > with Samba? >It seems you're using flat files and not openldap as backend. Is this machine a PDC ? It seems so because you've copied machines/users accounts on the newer box. But i don't see in your migration that you've copied the secrets.tdb file. This one is really important because it contains the domain SID . So if you've only copied smbpasswd (in old format or the newer one in tdb format but that doesn't matter), that means you're running a new domain controller for a new domain ... usually i copy the whole /etc/samba dir from one machine to the newer one in such migration ... -- Fabian Arrotin <fabian.arrotin at arrfab.net> Solution ? echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20070415/386152aa/attachment-0004.sig>