On Friday 20 June 2003 10:57, Andrei Verovski (aka MacGuru) wrote:
I am need to replace old e-mail server with new one, and somehow migrate user accounts (including passwords) from old machine to the new one. I am thinking about using YP server for this purpose.
May be anyone knows better and simpler solution?
If you are not using YP, then you can migrate all accounts simply by copying a number of files in /etc from the old host to the new, namely passwd, group, shadow and gshadow. I'd strongly suggest that you copy in some "intelligent way", i.e., perhaps move the account lines one at a time from one file to another, which is feasible at least if the number of accounts is reasonably low. (If you are used to the vim editor, its diff mode is very convenient for such a task. If not, get used to it! :-) When using YP, one additional step is required after you have completed copying the files: # cd /var/yp # make -- Ch