I am migrating from an old Ubuntu 10.04 server to a different machine, upgrading to 14.04 at the same time.
One of my tasks is to migrate the users, so I have exported a list of users with UID > 1000 on the old machine and then appended that list to the list on the new machine
cat userlist >> /etc/passwd
Same for /etc/shadow
.
I noticed a few users that were probably not created manually but are the result of the installation of a program. In my case, these users are vmail
and spamd
.
Now I wonder, whether importing those users before installing the program may cause any issues. Should I
- install
dovecot
andspamassassin
first, then import the users, check the result withpwck
and delete the duplicate - import the users, then install
dovecot
andspamassassin
as it will reuse the existing user and not cause issues - something completely different
newusers
needs plain text passwords, but I only have encrypted passwords from /etc/shadow – Thomas Weller Jan 09 '16 at 21:02