Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2001 16:03:16 -0400
From:      "Gerald T. Freymann" <freymann@eagle.ca>
To:        "Pablo Quintana" <quintana@netsys.hn>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Password file saved?
Message-ID:  <02e901c0cdc2$c49da870$0f01a8c0@phantom>
References:  <5.0.2.1.0.20010425133119.00a22760@netsys.hn>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02e901c0cdc2$c49da870$0f01a8c0>