[CentOS] preparing to migrating to new system

Wed Dec 22 15:23:14 UTC 2010
Chris Geldenhuis <chris.gelden at iafrica.com>

Rajagopal Swaminathan wrote:
> Greetings,
>
> On Tue, Dec 21, 2010 at 10:07 PM, Jerry Geis <geisj at pagestation.com> wrote:
>   
>> hi all,
>>
>>     
>
> hmm..
>
> scp <oldbox>:/etc/passwd <brand new CentOS 6 Box geewiz>:/etc/passwd
> ditto /etc/gshadow,/etc/groups, /etc/gshadow
>
> YMMV
>
> Regards
>
> Rajagopal
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>   
Hi,

Be aware that if you are doing this between different releases 4.x to 
5.x for instance you stand a good chance of breaking your system as the 
systems account set up by the installer may well differ between the two 
releases. It is safer to extract the users that you have added to the 
system from the password and shadow files and to append the resulting 
files to the new system's password and shadow files.

ChrisG