cp /etc/master.passwd /etc/master.passwd.orig
cp /etc/passwd /etc/passwd.orig
cp /etc/group /etc/group.orig
Then copy these same files from the 'old' machine, you can use 'scp' or whatever to copy them. If you're unsure how to do this, send me a message; that would be a whole separate post. Once you get the files to the 'new' machine, copy them to the /etc folder overwriting what is there. Type the following command to import all of the users:
pwd_mkdb /etc/master.passwd
(NOTE: THIS WILL MAKE THE USER LIST THE SAME AS THE 'OLD' MACHINE; ANY ACCOUNT THAT IS NOT ON THE OLD MACHINE WILL NOT EXIST; ROOT PASSWD WILL CHANGE TO WHAT 'OLD' IS SET TO.)
No comments:
Post a Comment