From owner-freebsd-questions Mon Sep 13 17:53:56 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [212.110.138.1]) by hub.freebsd.org (Postfix) with ESMTP id D541E14F2D for ; Mon, 13 Sep 1999 17:53:24 -0700 (PDT) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.3/8.9.3/UCB) id DAA75960; Tue, 14 Sep 1999 03:52:00 +0300 (EEST) (envelope-from ru) Date: Tue, 14 Sep 1999 03:52:00 +0300 From: Ruslan Ermilov To: Peter Benjamin Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Migrating passwd from 2.2.X to 3.2 method needed Message-ID: <19990914035200.A71293@relay.ucb.crimea.ua> Mail-Followup-To: Peter Benjamin , freebsd-questions@FreeBSD.ORG References: <4.1.19990913161909.0365c930@mail.westworld.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <4.1.19990913161909.0365c930@mail.westworld.com>; from Peter Benjamin on Mon, Sep 13, 1999 at 05:31:45PM -0700 X-Operating-System: FreeBSD 3.2-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Sep 13, 1999 at 05:31:45PM -0700, Peter Benjamin wrote: > > Hi, > > I'm trying to upgrade to FreeBSD 3.2 by installing it from scratch > onto a new system. That worked fine. The old FreeBSD 2.2.7 box > has 20+ userid accounts and passwords I wish to have on the new > box. Simply copying the /etc files over is not working. > > /etc/passwd > /etc/group > /etc/master.passwd > /etc/spwd.db > > Is there an easy way to migrate the accounts from the FreeBSD > 2.2.7 box to the FreeBSD 3.2 box? > 1) Merge your saved /etc/group and /etc/master.passwd with ones in /usr/src/etc. 2) Run `pwd_mkdb -p ' > The pwd_mkdb command seems to have failed me as well. > Perhaps the master.passwd file format is different between > 2.2.X and 3.2? > No, just some system UIDs were added. What does `pwd_mkdb -C /etc/master.passwd' tell? -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message