From owner-freebsd-current@freebsd.org Tue Jan 16 00:15:29 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D1A0BEA64AA for ; Tue, 16 Jan 2018 00:15:29 +0000 (UTC) (envelope-from SRS0=A9O1=EL=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 976F0775F3 for ; Tue, 16 Jan 2018 00:15:29 +0000 (UTC) (envelope-from SRS0=A9O1=EL=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 250BE28417; Tue, 16 Jan 2018 01:15:21 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 881462840C; Tue, 16 Jan 2018 01:15:19 +0100 (CET) Subject: Re: Copying to a new computer To: kremels@kreme.com, FreeBSD Current References: From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <5A5D4417.2020106@quip.cz> Date: Tue, 16 Jan 2018 01:15:19 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2018 00:15:29 -0000 @lbutlr wrote on 2018/01/16 00:12: > I am replacing an old machine with a newer machine and I want to be sure I can move the shell users to the new machine, especially since I am mostly going too be setting up the machine as new. > > What are the minimal files that I need to copy over so that the users and groups from the old machine are on the new machine and without having to reset all the passwords? > > (Most the users are in sql databases, so that's not an issue, but there are a few with shell accounts, those are the ones I'm concerned with. > > I was intending to stick with v11.1 at this point. You can copy these files: /etc/group /etc/login.conf /etc/master.passwd /etc/passwd And DB files /etc/login.conf.db /etc/pwd.db /etc/spwd.db Or you can recreate them with pwd_mkdb and cap_mkdb (see their man pages) If you installed some shells like bash or zsh for users, then you must installed them too and verify /etc/shells settings. Additionally you may need a copy of /etc/profile and /etc/csh.cshrc if you modified them. Miroslav Lachman