At 11:55 AM -0700 16/11/09, LuKreme wrote:
>Erm. Ok, is there any trick to moving the password files from machine 
>to machine?  What exactly do I need to copy?
>
>Since I am changing FreeBSD versions I don't want to simply sync /etc

        Unless FreeBSD is radically different to linux, which it 
might well be, what I usually do is
- copy /etc/passwd and /etc/shadow, /etc/group across, but renamed, 
not copying over the installed version. Probably strictly speaking 
you don't need to to do this if you are able to access files from 
both systems at once (ie if you are editing both using BBEdits edit 
over SFTP function).
- basically, make a new combined version of each of those files, with 
all the system accounts from the new server and all the personal 
accounts from the old server. This shouldn't take more than a minute 
or two with a good text editor with some form of diff command.
- ensure that the account list matches on all three files.
- ensure that you can definitely log in to at least one account with 
root privileges now.
- reboot.
        Cheers
                David
_______________________________________________
OSX-Nutters mailing list | [email protected]
http://lists.tit-wank.com/mailman/listinfo/osx-nutters
List hosted at http://cat5.org/

Reply via email to