From owner-freebsd-questions Wed Apr 25 13: 0:45 2001 Delivered-To: freebsd-questions@freebsd.org Received: from marlo.eagle.ca (marlo.eagle.ca [209.167.16.10]) by hub.freebsd.org (Postfix) with ESMTP id A6DDF37B422 for ; Wed, 25 Apr 2001 13:00:42 -0700 (PDT) (envelope-from freymann@eagle.ca) Received: from phantom (staff.eagle.ca [209.167.16.15]) by marlo.eagle.ca (8.11.0/8.11.0) with SMTP id f3PK0AK60792; Wed, 25 Apr 2001 16:00:10 -0400 (EDT) (envelope-from freymann@eagle.ca) Message-ID: <02e901c0cdc2$c49da870$0f01a8c0@phantom> Reply-To: "Gerald T. Freymann" From: "Gerald T. Freymann" To: "Pablo Quintana" Cc: References: <5.0.2.1.0.20010425133119.00a22760@netsys.hn> Subject: Re: Password file saved? Date: Wed, 25 Apr 2001 16:03:16 -0400 Organization: eagle.ca MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I'm trying to update a FreeBSD 2.2.8 server to 4.2 R. My question is if I > format the drive and start from scratch, can I save the password file to > add the users but not retype the passwords? take /etc/master.passwd and save it somewhere. Once you format and load 4.2R, put your saved copy of /etc/master.passwd onto the new system then run: pwd_mkdb /etc/master.passwd You're probably using DES encryption on 2.2.8 so you'll need to tell the new box to use that as well. You'll want to add: :passwd_format=des:\ to the default entry in /etc/login.conf and then run cap_mkdb /etc/login.conf (probably in single user mode) You may to go over some of the "stock" entries in your original master.passwd and the new one. I just did the same type of thing last November on 3 of our machines. I just used the top of the "new" master.passwd and copied the bottom section of the old master.passwd (minus the stock entries at at the top). > Another question, it is OK to upgrade the binaries from /stand/sysinstall > to 4.2 R, or it would be better to format the drive? I formatted and started over. Actually, we built a new machine so I had the advantage of having the old machine there in case I forgot to save something. But if you don't have anything too massive to save and bring forward, start fresh! -Gerry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message