can password be migrated?

Hi all,

I would like to migrate ftp users from an old  redhat 9.0 server to another new redhat 9.0 server, the problem is that there are around 100 ftp users, and I don't know what are their passwords now.

I can easily migrate their content to the new server, but how can I migrate their password too?

I think it should be common to migrate ftp users as hard disk may be damaged after a few years, how do system admin to solve this migration problem?

Thank you.

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.


    The password should be in /etc/shadow (read-only by root).
1. Copy /etc/passwd and /etc/shadow to new FTP server as /etc/passwd_old and /etc/shadow_old.
2. As root, edit /etc/passwd_old and delete system accounts (such as root, uucp, ntp, sys, adm, ....) and
    leave "only user account"  (compare with /etc/passwd and remove duplicate accounts).
    Delete system account in /etc/shadow_old.
3. # cat /etc/passwd_old >> /etc/passwd
    # cat /etc/shadow_old >> /etc/shadow

Then user account and passwd are migrated. Then next thing is the users' home directories (the infomation is in /etc/passwd).

stanleyhuenAuthor Commented:
Thanks wesly_chen,

I will try your solution in coming week.
I would like to ask if I just want to migrate 1 ftp user, can I just copy the lines for this user in /etc/passwd (1 line) and /etc/shadow (1 line) from old server to new server?

Thank you.

Stanley Huen
> migrate 1 ftp user, can I just copy the lines for this user in /etc/passwd (1 line) and /etc/shadow (1 line)
Yes, you can.

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

one more thing you may need to beware, if you have created user groups you also need to copy the /etc/group and /etc/gshadow.

others is as wesly_chen said.

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
stanleyhuenAuthor Commented:
Thank you for your help.
I have followed to copy /etc/passwd, /etc/group, and /etc/gshadow and /etc/shadow.
But then our users found that they are not able to chmod using ftp client.

What is the problem?

> our users found that they are not able to chmod using ftp client.
Could you create an regular ftp account and test it for chmod?
If the account you created could not chmod, then that's the ftp server settting issue.

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

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.