Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 3130  / 3 Years ago, sat, september 4, 2021, 11:45:11

I have a situation where I have ~10 FTP users, and I need to migrate them from one server (server A) to another (server B).



The userdata (so their files) are in /home/<username>, so moving that is as simple as an rsync job.



I also need to keep their existing usernames/passwords etc - if it's at all possible, the users shouldn't notice that they had the server switched on them.



Is there a "easy" way to do this?


More From » server

 Answers
4

Generally speaking all you need to do is migrate the relevant lines in /etc/passwd, /etc/shadow and the group variants (/etc/group and /etc/gshadow) along with home files.



You might be able to just clone these files over but I think it's probably better to strip out the system accounts which might (poor design, but they might) store their passwords around the system which might be different on your new installation.



The best guide I've seen to do this selectively is this one. Just be careful that in the end you're using >> to append the old user accounts on to the new server's files and not > which would replace them.


[#42301] Saturday, September 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ibuteking

Total Points: 35
Total Questions: 128
Total Answers: 138

Location: Indonesia
Member since Thu, Oct 1, 2020
4 Years ago
ibuteking questions
Sat, Sep 10, 22, 08:44, 2 Years ago
Fri, May 12, 23, 10:10, 1 Year ago
Tue, May 23, 23, 13:38, 1 Year ago
;