From owner-freebsd-questions@FreeBSD.ORG Fri Oct 29 14:51:34 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B11C21065672 for ; Fri, 29 Oct 2010 14:51:34 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 09B2A8FC13 for ; Fri, 29 Oct 2010 14:51:33 +0000 (UTC) Received: from russet.local (reflex.squiz.co.uk [83.217.109.164]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o9TEpM7G066069 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 29 Oct 2010 15:51:29 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk o9TEpM7G066069 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1288363889; bh=X+c3+0KpcMQSolnqq5tMpzRLmRRkRIT13og1AMfxo3U=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4CCADF64.1030908@infracaninophile.co.uk>|Date:=20F ri,=2029=20Oct=202010=2015:51:16=20+0100|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20U=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20en-US=3B=20r v:1.9.2.12)=20Gecko/20101027=20Thunderbird/3.1.6|MIME-Version:=201 .0|To:=20Laszlo=20Nagy=20|CC:=20questions@fr eebsd.org|Subject:=20Re:=20Copy=20all=20users=20between=20systems| References:=20<4CCAB42E.9050703@shopzeus.com>|In-Reply-To:=20<4CCA B42E.9050703@shopzeus.com>|X-Enigmail-Version:=201.1.1|Content-Typ e:=20multipart/signed=3B=20micalg=3Dpgp-sha1=3B=0D=0A=20protocol=3 D"application/pgp-signature"=3B=0D=0A=20boundary=3D"------------en ig86A8159398B82EC47C106AAA"; b=orAfSF68FAJlAJHOx+/z78WIlVzD1OGGDjM6FWkTuvppHTvsgDQexX0Txz3wpqS6a 4NjGdndz5bqXmCsZR51B2ibBcdwcoUwUimxj8zHfmQQpIxDn/I/hPfOAmgqceH7zFU v4qTNkuUvn+l7gi0l/b3NpoKbwogJJMyqBDMeGGo= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host reflex.squiz.co.uk [83.217.109.164] claimed to be russet.local Message-ID: <4CCADF64.1030908@infracaninophile.co.uk> Date: Fri, 29 Oct 2010 15:51:16 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: Laszlo Nagy References: <4CCAB42E.9050703@shopzeus.com> In-Reply-To: <4CCAB42E.9050703@shopzeus.com> X-Enigmail-Version: 1.1.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig86A8159398B82EC47C106AAA" X-Virus-Scanned: clamav-milter 0.96.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Cc: questions@freebsd.org Subject: Re: Copy all users between systems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2010 14:51:34 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig86A8159398B82EC47C106AAA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 29/10/2010 12:46, Laszlo Nagy wrote: > I would like to copy all user accounts, including root from an already > installed 8.0 system to a fresh new 8.1 system. >=20 > My plan is to boot into single user mode, then copy these: >=20 > /etc/passwd > /etc/master.passwd > /etc/group >=20 > then run pwd_mkdb and finally restart the system. (Obviously, I also > need to copy user home directories) >=20 > Will this be enough? Did I miss something? That should be sufficient, assuming you aren't using NIS or LDAP or some other userdb. AFAIR there weren't any changes to the standard system accounts between 8.0 and 8.1, but in general you should also run 'mergemaster -p' to merge in any such when copying the master.passwd file between different OS versions. (mergemaster -p does some other stuff besides merging the system user accounts, but it's all pretty harmless) Restarting the system may not actually be necessary, but it's a good idea if you can spare the down-time. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig86A8159398B82EC47C106AAA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzK32oACgkQ8Mjk52CukIwKiQCcCM2jf0vb9cWsOXd9qYjDDRK2 Y24AoINexOzgg84MaBXetDwL1aFX+H7G =Rx9d -----END PGP SIGNATURE----- --------------enig86A8159398B82EC47C106AAA--