From owner-freebsd-questions@FreeBSD.ORG Fri Feb 13 19:58:19 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D66616A4CE for ; Fri, 13 Feb 2004 19:58:19 -0800 (PST) Received: from smtp-2.mdc.net (smtp-2.mdc.net [209.251.64.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7F1443D1F for ; Fri, 13 Feb 2004 19:58:18 -0800 (PST) (envelope-from matthew@netway.com) Received: from admin1.mdc.net (admin1.mdc.net [209.251.64.23]) by smtp-2.mdc.net (8.9.3/8.9.1) with ESMTP id WAA96100; Fri, 13 Feb 2004 22:58:14 -0500 (EST) (envelope-from matthew@netway.com) Date: Fri, 13 Feb 2004 22:58:08 -0500 (EST) From: matthew X-X-Sender: matthew@admin1.mdc.net To: Paul Hoffman In-Reply-To: Message-ID: <20040213225521.M84454@admin1.mdc.net> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: Migrating users and passwords from one system to another X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2004 03:58:19 -0000 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" >