Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Aug 2002 10:29:02 +0200
From:      Ruben de Groot <fbsd-q@bzerk.org>
To:        Mr Dan Peck <dan037@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: RedHat to FreeBSD Migration
Message-ID:  <20020802102902.A21241@ei.bzerk.org>
In-Reply-To: <20020802013803.26506.qmail@web40016.mail.yahoo.com>; from dan037@yahoo.com on Thu, Aug 01, 2002 at 06:38:03PM -0700
References:  <20020802013803.26506.qmail@web40016.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 01, 2002 at 06:38:03PM -0700, Mr Dan Peck typed:
> Hello List,
> 
> I've been tasked with upgrading a server with
> approximately 5,000 users (at a small ISP).  The
> current server runs RedHat 6.2, and I would prefer to
> run FreeBSD 4.6.1 on the new one, but would need to be
> able to copy the password and group files from the
> RedHat box as we don't have the resources to re-enter
> all of the users by hand.  Any information on
> migrating the passwd/and group files would be very
> helpful.  I'm not currently subscribed to the list, so
> please CC: your responses to me.  Thanks!

Hi Dan,

Since I'm not aware of any automated tool for doing what you want, here's
what I would do:

- Look at FreeBSD's master.passwd file, each entry consists of the 
following fields, seperated by ':'

           name      User's login name.

           password  User's encrypted password.

           uid       User's id.

           gid       User's login group id.

           class     User's login class.

           change    Password change time.

           expire    Account expiration time.

           gecos     General information about the user.

           home_dir  User's home directory.

           shell     User's login shell.

- Find the corresponding fields in RedHat's passwd and shadow files. 

- Write a (perl?) script to create a master.passwd from the passwd 
and shadow files

- Move the master.passwd file to the FreeBSD box in the /etc directory
and run the command:

# pwd_mkdb -p /etc/master.passwd

That will create the necessary password database files for you.

Disclaimer: I don't know what format RH uses for its encrypted passwords,
so maybe you'll have to write another script to generate new passwords
for each user.

hope this helps,

Ruben

> 
> -Dan
> dan037@yahoo.com
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

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?20020802102902.A21241>