Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Oct 1998 17:03:54 +0100
From:      Michael Doyle <relyod@indigo.ie>
To:        Guy Helmer <ghelmer@scl.ameslab.gov>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Migrating User information (HELP)
Message-ID:  <3.0.5.32.19981008170354.009185a0@pop.indigo.ie>
In-Reply-To: <Pine.SGI.3.96.981008100551.2227C-100000@demios.scl.ameslab .gov>
References:  <3.0.5.32.19981008141352.009494f0@pop.indigo.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
>> I want to replace the old server with the new server, but to do so, I
need to
>> set up or copy all the user accounts on the old server onto the new server.
>> 
>> Is there any way to do this? 
>> 
>> I tried copying the passwd, master.passwd, passwd.db, spwd.db and group
files
>> to the new server but this just locked me out of the system - none of
>> the passwords worked. (restoring the old files put things back the way
>> they were)
>
>It should have worked; do you have the same links for /usr/lib/libcrypt*
>on your new machine as you did on your old machine?  A common problem is
>for a "new" machine to not have the /usr/lib/libdescrypt* libraries
>installed, which are required if the passwords were encrypted on a machine
>that had the libdescrypt* libraries.
>

Hmm... each machine is as installed from the release CD-ROMS
(old = 2.2.5, new=2.2.7) and in each case I did not install the
US security patches, so it is quite possible that the lybcrypt* files
are different. 


>> How can I duplicate the users onto the new machine?
>> (They are connected by a LAN, at the moment NFS is not installed on either,
>> but FTP is working on both)
>
>If you have the disk space, you could tar up the home directories on the
>old machine, FTP the tar file to the new machine, and untar the home
>directories on the new machine.
>

Yup, I'm sure I could do this. the old machine has about 100M free,
the new one has 6G free, and all but two or 3 of the home directories 
are simply stubs - because the machine in question is a Web Proxy/POP3 server
the majority of users only ever use Eudora and IE/Netscape to interract
with it.

>Otherwise, if you can "rsh" as root between the two machines, you might be
>able to do:
>
>	tar cf - /usr/home | rsh newmachine "tar -C /usr/home -x -v -f -"
>

Thanks... 

	Mike
<><=====================================================><>
Michael Doyle                   phone: +353-1-661-0588
Network Administrator           http://www.co-operation-ireland.ie/
Co-Operation North		

E-mail: relyod@co-operation-ireland.ie	(0ffice)
	relyod@indigo.ie		(Personal)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19981008170354.009185a0>