Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Feb 2004 22:58:08 -0500 (EST)
From:      matthew <matthew@netway.com>
To:        Paul Hoffman <phoffman@proper.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Migrating users and passwords from one system to another
Message-ID:  <20040213225521.M84454@admin1.mdc.net>
In-Reply-To: <p06020431bc53460ca26d@[63.202.92.153]>
References:  <p06020431bc53460ca26d@[63.202.92.153]>

next in thread | previous in thread | raw e-mail | index | archive | help


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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040213225521.M84454>