I'm migrating my Ubuntu 8.10 Server to 10.04. Is there any script to migrate users
/etc/passwd and groups
/etc/group along with password
/etc/shadow from one server to another?
These files are actually just plain-text files. You can really move them, copy and paste them, or back them up any way you wish between the systems.
In addition, you might consider some kind of versioning.
If you want to make a simple backup, just use
To restore the files, just use tar with 'x' instead of 'c' :
There should be no change in the hash algorithm between these releases. The system doesn't 'know' your passwords, -- they are calculated as matching or not matching by running the user input through a one-way digest algorithm and comparing the output to the hash in /etc/shadow. It's even conceivable that more than one input will match the stored hash, but you can't go back the other way, so as far as I know, scripting a password export is not possible.
It appears that SHA-512 has been the standard since glibc 2.7, so Ubuntu 8.10 and 10.04 should be completely compatible in this respect.
|show 4 more comments|