Moving accounts to another server having home and home2 issues

nyjimbo

Well-Known Member
Jan 25, 2003
1,135
1
168
New York
We have been moving accounts from one server to another and found that some of the accounts have problems with things like frontpage and yabb.

It seems that if an account was originally on one partition (home) and then "rearranged" to another (home2) and later on pkgacct and moved to a new server with a home2 partition, some of the things in that account still have
"home" as the pathing. Frontpage extensions are all screwed up and if you try to uninstall yabb (perhaps other things as well) it will say something like it cannot change to the folder "/home/username/public_html/whatever".

It seems that when the account on the old server is "rearranged" there is still some pathing pointing to "home" but on the old server there is a link like "[email protected]" on the /home partition which links to "home2" or whatever the new rearranged location is. But if you move the account to a new server with a "home2" it does not also copy the "[email protected]" link or whatever it is so now the accounts fail when it depends on that.

"/home" shows something like this on the OLD server(just noting the perms and filename):

lrwxrwxrwx --- --- --- --- username -> /home2/username

that does not exist on the new server.

Not sure if that makes sense, but I was wondering if anyone else experienced this and what can be done to avoid having this problem in the future as we move accounts to newer servers that may have been re-arranged years before on older servers.

Will simply making a new link like the above on "/home" fix this ? Is there a script to do this
or will some command line stuff do it ?
 
Last edited:

nyjimbo

Well-Known Member
Jan 25, 2003
1,135
1
168
New York
Well it seems all I had to do was go to the new server and after moving any account to it just do a

ln -s /home2/account /home/account

and it created the link on /home that did not get created with the move of the account to the new server. So far everything that was failing now seems to be working, but I will keep an eye on it.