From owner-freebsd-questions@FreeBSD.ORG Wed Feb 25 13:41:18 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 79CC016A4CE for ; Wed, 25 Feb 2004 13:41:18 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4118543D1F for ; Wed, 25 Feb 2004 13:41:17 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i1PLfCuV030108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 25 Feb 2004 21:41:12 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i1PLfC0m030107; Wed, 25 Feb 2004 21:41:12 GMT (envelope-from matthew) Date: Wed, 25 Feb 2004 21:41:12 +0000 From: Matthew Seaman To: Luis =?iso-8859-1?Q?Guzm=E1n?= Message-ID: <20040225214111.GB29738@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Luis =?iso-8859-1?Q?Guzm=E1n?= , freebsd-questions References: <015c01c3fbe6$9ec33930$0401a8c0@copernico> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: <015c01c3fbe6$9ec33930$0401a8c0@copernico> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions Subject: Re: Problems after upgrade 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: Wed, 25 Feb 2004 21:41:18 -0000 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 25, 2004 at 03:30:36PM -0600, Luis Guzm=E1n wrote: > I upgraded my server from FreeBSD 4.6.2 to version 4.8. After this, my pa= sswd file was empty and my master.passwd was gone! I have a backup of these= files and now I need to rebuild my users database. Is there a way to do th= is from my old files? I also need them for my SMB network. Copy your backup master.passwd file to /etc/master.passwd and then run: # pwd_mkdb /etc/master.passwd which will rebuild the password database, including the /etc/passwd file. = =20 Nb. If you upgraded your system using the install media, what it will have done is essentially write over your original system with the updated files. That includes giving you a fresh set of the default versions of the files under /etc -- it will backup your original settings for you, but you're going to have to merge those files with the new ones under /etc. This includes particularly such files as /etc/group, /etc/login.conf, /etc/make.conf, your PPP configuration (if you're using PPP) and any other files you've customised. You may find the following commands useful if you need to restore the group or login.conf files: # cap_mkdb /etc/login.conf # cap_mkdb /etc/group (It does no harm to run those if you're not sure whether you need to or not.) Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAPRZ3dtESqEQa7a0RAgEiAJsG/KFElmFDBGdmOQyqthDDqXYtlwCfWEam XQU0069hDqWLH7P+4qEQqnQ= =RER0 -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--