From owner-freebsd-questions@FreeBSD.ORG Mon Nov 8 23:03:09 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 B76E5106566B for ; Mon, 8 Nov 2010 23:03:09 +0000 (UTC) (envelope-from mattibjork@bredband.net) Received: from smtprelay-h22.telenor.se (smtprelay-h22.telenor.se [195.54.99.197]) by mx1.freebsd.org (Postfix) with ESMTP id 6E0E78FC23 for ; Mon, 8 Nov 2010 23:03:09 +0000 (UTC) Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id 0A888E9CFB for ; Mon, 8 Nov 2010 23:44:01 +0100 (CET) X-SENDER-IP: [83.227.94.48] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtU1AP4L2ExT414wPGdsb2JhbACIA5oQDAEBAQE1Lb0bhUgEjXg X-IronPort-AV: E=Sophos;i="4.59,171,1288566000"; d="scan'208";a="149492657" Received: from c-305ee353.649-1-64736c10.cust.bredbandsbolaget.se (HELO mail.birch.se) ([83.227.94.48]) by ipb1.telenor.se with SMTP; 08 Nov 2010 23:44:01 +0100 Received: (qmail 60507 invoked from network); 8 Nov 2010 22:44:28 -0000 Received: from unknown (HELO ?192.168.10.209?) (192.168.10.209) by ns.birch.se with SMTP; 8 Nov 2010 22:44:28 -0000 Message-ID: <4CD87D31.7070903@bredband.net> Date: Mon, 08 Nov 2010 23:44:01 +0100 From: "mattibjork@bredband.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10 MIME-Version: 1.0 To: Matthew Seaman References: <4CCAB42E.9050703@shopzeus.com> <4CCADF64.1030908@infracaninophile.co.uk> In-Reply-To: <4CCADF64.1030908@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org, Laszlo Nagy 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: Mon, 08 Nov 2010 23:03:09 -0000 Hello Matthew, On 10/29/2010 04:51 PM, Matthew Seaman wrote: > 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. >> >> My plan is to boot into single user mode, then copy these: >> >> /etc/passwd >> /etc/master.passwd >> /etc/group >> >> then run pwd_mkdb and finally restart the system. (Obviously, I also >> need to copy user home directories) >> >> 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. Its never bad to be careful but shouldn't it be enough to change init mode? > Cheers, > > Matthew > //Mattias