Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Sep 1999 03:52:00 +0300
From:      Ruslan Ermilov <ru@ucb.crimea.ua>
To:        Peter Benjamin <bvirtual@westworld.com>
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>
In-Reply-To: <4.1.19990913161909.0365c930@mail.westworld.com>; from Peter Benjamin on Mon, Sep 13, 1999 at 05:31:45PM -0700
References:  <4.1.19990913161909.0365c930@mail.westworld.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <your_master_passwd>'

> 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




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