Sure, just replace the files (do a backup before!). But I suggest you to copy only user entry, not administrative/system ones (bin, daemon, adm, httpd, dbus...).
Main Topics
Browse All Topicsi have backup of etc/passwd
etc/group
etc/shadow
etc/sudoers
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
There's a couple of things to look after too:
/etc/group contains all the groups & setting belonging to that password file (and optional /etc/gshadow if passwords for newgrp were used.)
/etc/security/* files are config files for limits & pam etc. you need to evaulate if there are special settings .. (compare the old files to the old originals, and verify them with current settings).
/etc/pam.d/* for special pam scripting, dont blindly copy it but check if they have been customized.
i was just trying to implement the method ,
the best way i come out is
use tar -cvzf command to make tar file /etc/pasword, /etc/shadow , /etc/groups , /home directory
put the tar files to the new server and the unzip it
i didnot see any problem , i can use same user name and password with home directory as old server
Another excellent article
http://www.cyberciti.biz/f
Business Accounts
Answer for Membership
by: fosiul01Posted on 2009-08-28 at 04:17:32ID: 25206401
you can use a script to copy username and password from old system to new sytem
e.com/OS/L inux/Q_237 46963.html
its not my script, its @tintin's script, you might have to change it little bit , just copy all username and password from Old mechine and then insert into new mechine ..
http://www.experts-exchang
as far I knew, you could of just just copy and past /etc/passwd and /etc/shadow from Old pc to new pc, but i never tryed this. so may be other EE who does this would be able to help you.
also i wil try this by copying from old pc to new pc ,see if it works, i am interested aswell.
but that script concept would work 100%
Select allOpen in new window