On 11/15/13 05:10, John Tate wrote: > I want to migrate users from one machine to another, I was hoping > someone had a script. I basically want to copy every user with a UID >>= 1000 and their password to the new system. I have copied their home > directories with rsync, so it would be good if it could also chmod the > permissions back. >
not sure why you need a script... The exact details depends on what is different between the systems currently and desired to be different ultimately. Start with the old /etc/master.passwd file, fix things that are missing, remove things you don't want, copy it over and and run pwd_mkdb. If the starting and ending machines are supposed to be "identical", no fixing should be needed. Nick.