Migrating users and passwords from one system to another

matthew matthew at netway.com
Fri Feb 13 19:58:19 PST 2004



On Fri, 13 Feb 2004, Paul Hoffman wrote:

> Greetings again. I'm kinda surprised that this isn't an FAQ, but...
>
> How do I move users and passwords from a current system to a new one?
> Is it sufficient to move /etc/master.passwd and /etc/passwd, or are
> there other things?
>

I always just copy over the files when no other process is using them.
/etc/master.passwd /etc/passwd /etc/group

I then run

/usr/sbin/pwd_mkdb -p /etc/master.passwd

on the new machine to generate the passwd databases.

Try to look for a flag one can use with rsync to keep modification time,
           access time, file flags, file mode, user ID, and group ID as
           allowed by permissions...

copied from man cp -p flag comment.

m

> I'm moving from an oldish 4.8 system to a brand new 4.9 system, and
> want to have all the users set up on the new machine before I start
> rsyncing everything over so that the users and groups come out right.
>
> --Paul Hoffman
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list