Koozali.org: home of the SME Server

Is this a bug (XP cant rejoin domain after restore from tape

Offline ldkeen

  • *
  • 403
  • +0/-0
I'm just about to put a hammer through a couple of machines here. Just a bit of background:
Clean install then restore from tape. 4 machines on the network (2 x 2K, 2 x XP) SME6.0.1-01 PDC. After restoring I unjoin the 2K boxes then rejoin and everything works EXACTLY as normal. But the XP boxes refuse to play the game. After unjoining the domain when I try to rejoin I get "username could not be found" as admin and "unknown user" as root. I've spent hours trying to find a solution for this and I think it may revolve around restoring the old secrets.tdb file?? When the script S00merge-system-files runs it produces an error with these four machines. Could this be a bug in the script or am I doing something wrong (see output below). I'm gunna have a another go, this time changing the NETBIOS name of the machine.

Jul 30 22:43:39 qh e-smith[2799]: Running event handler: /etc/e-smith/events/post-upgrade/S00merge-system-files
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: named - Missing after restore
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user lloyd
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user qhfiles
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user office
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user russell
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user jason
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user brett
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user scott
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user adam
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user nick
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user catherine
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user lauren
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user melissa
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user kelly
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user tracey
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user jotika
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user amy
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user joanne
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user amanda
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user mahost
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user john
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user leanne
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user helen
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: clamav - Missing after restore
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: qhXP1$ - Missing after restore
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: qhXP2$ - Missing after restore
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: Restoring user bavo
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: qh2K1$ - Missing after restore
Jul 30 22:43:40 qh e-smith[2799]: merge_passwd: qh2K2$ - Missing after restore
Jul 30 22:43:40 qh e-smith[2799]: merge_group: named - Missing after restore
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group lloyd
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group qhfiles
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group office
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group russell
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group jason
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group brett
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group scott
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group adam
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group nick
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group catherine
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group lauren
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group melissa
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group kelly
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group tracey
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group jotika
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group amy
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group joanne
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group amanda
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group mahost
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group john
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group leanne
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group helen
Jul 30 22:43:40 qh e-smith[2799]: merge_group: clamav - Missing after restore
Jul 30 22:43:40 qh e-smith[2799]: merge_group: qhXP1$ - Missing after restore
Jul 30 22:43:40 qh e-smith[2799]: merge_group: qhXP2$ - Missing after restore
Jul 30 22:43:40 qh e-smith[2799]: merge_group: Restoring group bavo
Jul 30 22:43:40 qh e-smith[2799]: merge_group: qh2K1$ - Missing after restore
Jul 30 22:43:40 qh e-smith[2799]: merge_group: qh2K2$ - Missing after restore
Jul 30 22:43:40 qh e-smith[2799]: Preserving etc/passwd as etc/passwd.1091191420
Jul 30 22:43:40 qh e-smith[2799]: Preserving etc/shadow as etc/shadow.1091191420
Jul 30 22:43:40 qh e-smith[2799]: Preserving etc/group as etc/group.1091191420
Jul 30 22:43:40 qh e-smith[2799]: Preserving etc/gshadow as etc/gshadow.1091191420
Jul 30 22:43:40 qh e-smith[2799]: Preserving etc/samba/smbpasswd as etc/samba/smbpasswd.1091191420

The part about the machine names missing after restore puzzles me. Anyone with more experience than me have any ideas?

ryan

Is this a bug (XP cant rejoin domain after restore from tape
« Reply #1 on: August 01, 2004, 12:37:49 AM »
I have seen this issue with both 2k and XP clients attempting to rejoin.  I was able to add them back to the domain by using root instead of admin.  To do this, you must create a root smbuser using the root password from the server.  

When you change the server password, you must manually change the smb 'root' user password at the command line.  I am assuming you have not upgraded to samba 3.

First, look to see if you have a root smbuser.  Look in /etc/smbpasswd.....you will see all your smbusers.

If root is shown, reset the root smbpasswd by typing smbpasswd at the command line (as root).

Now use root instead of admin on the XP clients.

If no root smbuser is shown, I do the following to add an smbuser:

smbpasswd -a root

then

smbpasswd -e root

You should now have a root user in /etc/smbpasswd


hope this helps you,

ryan

ryan

Is this a bug (XP cant rejoin domain after restore from tape
« Reply #2 on: August 01, 2004, 12:43:30 AM »
I am also assuming you have done all the 'preps' for XP to join a samba domain!!!!!!

I run a registry patch (from SME server) on each client.  

For both 2k & XP, I edit IP Domain security communication settings in Local security under administration.

ryan

Offline ldkeen

  • *
  • 403
  • +0/-0
rejoining XP to the domain
« Reply #3 on: August 01, 2004, 02:40:05 AM »
Thanks heaps for the reply ryan. Both these XP boxes had all the patches and were previously connected to the domain. It was only after a standard re-install then restore from tape that I have these problems. I have not tried upgrading samba or anything. I tried to connect using both admin and root and neither worked. I'm just about to head back out there soon to have another go after I've cooled down a bit. I'll try you're sugestion about adding root to /etc/smbpasswd as I don't have a root user listed there. If that doesn't work I'll try renaming the machines. If that doesn't work it's MC hammer time    :-D
[singing] Wish me luck as I walk out the door[/singing]

Offline ldkeen

  • *
  • 403
  • +0/-0
XP rejoing the doamin
« Reply #4 on: August 01, 2004, 11:57:24 AM »
Went back today and renamed the two XP boxes then rejoined using admin without a hitch. Profiles then loaded up without problems. Thanks for the help ryan.
Regards Lloyd

Offline arnoldob

  • *
  • 183
  • +0/-0
Upgrade?
« Reply #5 on: August 02, 2004, 10:52:21 PM »
If your interested this is how I got Samba 3.0 working:
http://forums.contribs.org/index.php?topic=22730.0
Tampa, FL USA

Offline ldkeen

  • *
  • 403
  • +0/-0
Is this a bug (XP cant rejoin domain after restore from tape
« Reply #6 on: August 03, 2004, 12:45:34 AM »
Thanks for the reply Arnold,
My major hassle was getting the box to join the domain. Once I accomplished that the rest was plain sailing. I'm in no real hurry to play with Samba 3.0 at the moment. Thanks for the post anyway.
Lloyd

norman969

Is this a bug (XP cant rejoin domain after restore from tape
« Reply #7 on: September 04, 2005, 03:09:11 PM »
i also have this problem.

ill try what has been recomended

norman969

Is this a bug (XP cant rejoin domain after restore from tape
« Reply #8 on: September 08, 2005, 10:44:18 AM »
hi guys

my problem is that the roaming profiles are not working after the restore.
i tried:
1. disconecting from the domain
2. changing the computer name
3. rejoining
4. loging on - the profile loads with no problems but the startup routine is screwed up and windows just doesnt open outlook express or other programs no matter how many times I try and load.

please help me...
do you think that reinstalling windows will fix the problem?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Is this a bug (XP cant rejoin domain after restore from tape
« Reply #9 on: September 08, 2005, 04:08:52 PM »
If you suspect anything might be a bug (e.g. you find that something that you think should work which doesn't), then report it as a bug in the bug tracker.