Chuck Peters on 7 May 2013 14:56:24 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Moving user accounts |
That said, I'd probably do something like:
Old:
----
tar czf /tmp/data.tgz /etc/passwd /etc/shadow /home
scp /tmp/data.tgz root@newmachine:/tmp
New:
----
cd tmp
mkdir data && cd $_
tar xzf /tmp/data.tgz
mv home/* /home
Then manually merge user data:
/tmp/data/etc/passwd --> /etc/passwd
/tmp/data/etc/shadow --> /etc/shadow
I'd personally use the awesome 'meld' GUI diff/merge tool, but you can use 'vi' or whatever you are comfortable with too.
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug