From owner-freebsd-questions@FreeBSD.ORG Sat Oct 9 18:00:40 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 AA17116A4CE for ; Sat, 9 Oct 2004 18:00:40 +0000 (GMT) Received: from lv.raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F70543D46 for ; Sat, 9 Oct 2004 18:00:39 +0000 (GMT) (envelope-from toomas.aas@raad.tartu.ee) Received: Message by Barricade lv.raad.tartu.ee with ESMTP id i99I0bhI003571; Sat, 9 Oct 2004 21:00:38 +0300 Message-Id: <200410091800.i99I0bhI003571@lv.raad.tartu.ee> Received: from INFO/SpoolDir by raad.tartu.ee (Mercury 1.48); 9 Oct 04 21:00:37 +0300 Received: from SpoolDir by INFO (Mercury 1.48); 9 Oct 04 21:00:07 +0300 From: "Toomas Aas" Organization: Tartu City Government To: "Walker, Michael" , questions@freebsd.org Date: Sat, 9 Oct 2004 21:00:04 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Priority: normal In-reply-to: Subject: RE: Planning a Upgrade (5.2.1 --> 5.3) 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: Sat, 09 Oct 2004 18:00:40 -0000 Hi! > Do you know of any utilities that I can use to read through my existing > /etc/master.passwd file and dump usernames and plain text passwords to a > file? You don't need to get the plain text passwords. It's sufficient to get the password hashes as they are in master.passwd, because when you move them to the new system they still represent the same passwords. The way I would proceed in your situation is this: Open the files /etc/passwd, /etc/master.passwd and /etc/group in text editor and look for non-system users/groups (the ones you've added yourself). Copy over the relevant lines to backup files in secure location. Of course, make sure to not change the original files. Once you have 5.3 installed, open /etc/group in text editor and add the lines you saved from your original /etc/group. Do not modify the lines representing system groups. Then issue the command 'vipw'. This opens your master.passwd file in vi, so you better know how to use vi ;-). Go to end of file and paste the lines that you saved from your original master.passwd. Exit, saving the changes. Make sure that the home directories specified in your newly-added lines exist. This should be it. -- Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ * No, `Eureka' is Greek for `This bath is too hot.'