Can a password file be copied from one linux machine to another?



I have created a new email server to replace the existing email server.  This server is using Centos (a free Red Hat Enterprise clone)  The original server was purchased preconfigured and is using sendmail.  The new server is configured with postfix.

On the new server, I have created the same user accounts as appears on the mail server.  Ideally, I would like to be able to copy the password file from the existing mail server and install in on the new server so that all users will be able to use their existing passwords.  

Any thoughts?
TangledTechAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

xDamoxCommented:
Hi,

Does your new mail server auth with /etc/passwd and /etc/shadow if so just copy these two files from your
old server.
0
TangledTechAuthor Commented:
I believe so, but how so I confirm.

0
xDamoxCommented:
Hi,

If you dont use LDAP I am pritty sure it will be the /etc/passwd /etc/shadow files just copy them over
also check through the /etc/passwd file for users you dont want anymore
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.