Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Aug 2002 11:41:37 -0400
From:      "Moti Levy" <moti@flncs.com>
To:        "Moti Levy" <moti@flncs.com>, "Mr Dan Peck" <dan037@yahoo.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: RedHat to FreeBSD Migration
Message-ID:  <028701c23a3b$1a16ab90$fd6e34c6@moti>
References:  <200208021511.g72FB2T15847@clunix.cl.msu.edu> <026801c23a3a$e19a86b0$fd6e34c6@moti>

next in thread | previous in thread | raw e-mail | index | archive | help
typo
it should be pwunconv ....
-------------------------------------------------
Moti
www.flncs.com
-------------------------------------------------
be careful what you wish for ...
-------------------------------------------------

----- Original Message -----
From: "Moti Levy" <moti@flncs.com>
To: "Mr Dan Peck" <dan037@yahoo.com>
Cc: <freebsd-questions@FreeBSD.ORG>
Sent: Friday, August 02, 2002 11:39 AM
Subject: Re: RedHat to FreeBSD Migration


> How about this ? ( tested on my debian 3.0 and FreeBSD 4.6 with 5 test
> accounts  )
> on linux box
> $pwunconf
> $cp /etc/passwd /root/passwd.conv
> $awk -F":" '{print $1":"$2":"$3":"$4":put login class here:put pass change
> time
> here:put pass expire time here:"$5":"$6":"7}' /root/passwd.conv >
> /root/passwd.bsd
> $scp /root/passwd.bsd user@freebsd:~/
>
> on freebsd box
> $vipw
> for within vipw , go to last line
> :r! cat ~/user/passwd.fbsd
> save
>
> test , done
> let me know if it worked ( it did for me )
> NOTE: dont forget to delete the passwd.conf and passwd.fbsd files and to
run
> pwconv on the linux box .
>
>
> -------------------------------------------------
> Moti
> www.flncs.com
> -------------------------------------------------
> be careful what you wish for ...
> -------------------------------------------------
>
> ----- Original Message -----
> From: "Jerry McAllister" <jerrymc@clunix.cl.msu.edu>
> To: "Mr Dan Peck" <dan037@yahoo.com>
> Cc: <freebsd-questions@FreeBSD.ORG>
> Sent: Friday, August 02, 2002 11:11 AM
> Subject: Re: RedHat to FreeBSD Migration
>
>
> > >
> > > 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!
> >
> > You should be able to copy over the group file pretty much as is.
> > Just make sure there are no conflicts or overlaps eg two different
> > groups using the same GID or two groups of the same name with
> > different GIDs.
> >
> > For the passwd file, probably the easiest thing is to create a little
> > perl script that reads the shadow passwd file from the LINUX machine
> > and creates and executes adduser(8) commands on the FreeBSD machine
> > for each entry.  That way all of the passwd, master.passwd and
> > password database files will get updated correctly.  Make sure and
> > throw away all the entries on the old machine that shouldn't be
> > transferred, such as root and ftp, etc.
> >
> > ////jerry
> >
> > >
> > > -Dan
> > > dan037@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
>
>


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?028701c23a3b$1a16ab90$fd6e34c6>