LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-22-2004, 08:30 AM   #1
seanfitz
Member
 
Registered: Mar 2003
Posts: 37

Rep: Reputation: 15
Server Migration


I have been running Samba on LM9.0 serving Win 9x and Win XP Pro MAchines. I recently installed LM9.2 and Samba 2.2.8a and copied all my config files. This of course required reconnecting each Win XP Pro box to my local domain. No problem but when users started to logon it was as if their profiles never existed. eg A person logs in, opens Word, goes through the Office network install procedure. They log out and then back in again, opens word again and goes through the install procedure again as if they were logging on for the first time.
I found that if I delete a users ntuser.dat file in their profile the problem is solved but their previous favourites, email settings, My Docs. folder, etc are all over ridden.
Any solution or info. on this would be greatly appreciated.
 
Old 01-22-2004, 10:56 AM   #2
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
If you are going to upgrade a server or move a samba server to a different box, you will need to to the following. You will need to copy the smbpasswd file and smb.conf file to the new box. If you decide to change the file paths you can do so without affecting the users on the network. The most important thing is to create the users with the same UIDS and GIDS as they were on the older box. You can copy their /etc/passwd and /etc/shadow info from the old files to the new ones. You also need to do the same for the workstations. I have done this successfully and moved a domain controller and a couple of file servers to newer boxes without any interruptions to the services. (Well, from the users' point of view.) We took everything down when users were out of the office. You also need to reset the permissions and ownership to what they were on the old box. I did not even need to rejoin the computers to the domain because the info was the same.

Hope this helps.
 
Old 01-22-2004, 12:32 PM   #3
seanfitz
Member
 
Registered: Mar 2003
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks for your reply. I did all that you said re. passwd, UID's, GID's, permissions, etc. on the transfer to the new server. There were no problems with Win 9x, just Win XP Profiles
 
Old 01-23-2004, 11:53 AM   #4
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
Just realized something. Did you use the sid from the old domain? You need to do:

-S DOMAIN Retrieve the domain SID for DOMAIN before you take the samba server down, then do

-W S-1-5-... Write the SID S-1-5-... to the secrets file after you upgrade using the sid that the former command spits out.
 
Old 01-23-2004, 12:25 PM   #5
seanfitz
Member
 
Registered: Mar 2003
Posts: 37

Original Poster
Rep: Reputation: 15
That bit I did not know about. Thanks a million for the help.
 
Old 05-10-2004, 02:03 PM   #6
groovin
Member
 
Registered: Oct 2002
Distribution: RH 8
Posts: 83

Rep: Reputation: 15
can u just move the secrets.tdb file over to the new server?
 
Old 05-10-2004, 03:02 PM   #7
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
You might do well to upgrade Samba too, there have been quite a few bug fixes since the version that you are running.
 
Old 06-18-2004, 01:35 PM   #8
seanfitz
Member
 
Registered: Mar 2003
Posts: 37

Original Poster
Rep: Reputation: 15
Got the solution.
For samba 2.8 to get the sid type smbpasswd -X servername
To set the new server sid type smbpasswd -W sid from first command
For samba 3 type net getlocalsid
To set the new server type net setlocalsid (with the old sid attached)
 
Old 10-07-2004, 06:13 PM   #9
tbeehler
Member
 
Registered: Aug 2003
Location: Washington State, USA
Distribution: Mainly RH 9.0
Posts: 226

Rep: Reputation: 30
Quote:
Originally posted by sidmark-2850
If you are going to upgrade a server or move a samba server to a different box, you will need to to the following. You will need to copy the smbpasswd file and smb.conf file to the new box. If you decide to change the file paths you can do so without affecting the users on the network. The most important thing is to create the users with the same UIDS and GIDS as they were on the older box. You can copy their /etc/passwd and /etc/shadow info from the old files to the new ones. You also need to do the same for the workstations. I have done this successfully and moved a domain controller and a couple of file servers to newer boxes without any interruptions to the services. (Well, from the users' point of view.) We took everything down when users were out of the office. You also need to reset the permissions and ownership to what they were on the old box. I did not even need to rejoin the computers to the domain because the info was the same.

Hope this helps.
You sir are my personal hero. I mistakenly used an old K-6 450 wtih 256 meg of ram for my samba server (40 users) and people had a noticable delay when they were logging in. I moved them to a 2.4ghz celeron with 512 meg of ram. I followed your instructions to a T and my users don't notice a difference and now they are on the new machine. Thank you so much!

Travis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Server Migration dapeng4001 Linux - Software 1 11-30-2005 09:47 AM
Mail Server Migration dapeng4001 Linux - Networking 0 11-29-2005 08:40 AM
server migration jdblueaudis4 Linux - Software 1 08-30-2005 12:47 PM
mail server migration syl20 Linux - Software 1 12-06-2004 11:06 AM
Web Server Migration vvandam Linux - Software 3 07-16-2003 06:12 AM


All times are GMT -5. The time now is 09:01 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration