*BSD News Article 59155


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!news.mathworks.com!fu-berlin.de!oberon.physik.fu-berlin.DE!not-for-mail
From: graichen@mail.physik.fu-berlin.de (Thomas Graichen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Linux -> FreeBSD Migration
Date: Tue, 9 Jan 1996 20:38:31 GMT
Organization: home :-)
Lines: 60
Message-ID: <DKxLC7.r7@mail.physik.fu-berlin.de>
References: <4cs1uh$46q@orca.osg.gov.bc.ca> <DKxF1I.1zH@mail.physik.fu-berlin.de>
NNTP-Posting-Host: oberon.physik.fu-berlin.de (130.133.3.126)
X-Access: 16 17 18
X-Newsreader: TIN [version 1.2 PL2]

Thomas Graichen (graichen@mail.physik.fu-berlin.de) wrote:
: Cy Schubert - BCSC Open Systems Group (cschuber@passer.osg.gov.bc.ca) wrote:
: : I'm in the process of migrating a server from Linux to FreeBSD 2.1.
: : Is there any way to "move" the password file over from Linux to FreeBSD
: : without having to re-encrypt the user's passwords.  Basically I'm looking to
: : migrate a box with an application that runs out of a number of captive shell
: : accounts, so other than the Berkeley copyright message, the end-user should
: : not see any difference in the application.

: i think - if you install the des stuff in FreeBSD you should be able
: to use your old passswd entries - as far as i know linux uses a des
: compatible crypt

ok - here i'm again - with something from the FreeBSD mailinglists

----------
This was just posted to the BSDi newsgroup.

here is a script to convert the linux passwd file to the master.passwd
file for bsdi:

--begin--

#!/usr/bin/awk -f
BEGIN { FS = ":" ; OFS = ":" }
{ print $1, $2, $3, $4, "", 0, 0, $5, $6, $7 }

--end--

run it with the following command line(of course, backup existing
files:

scriptname linuxpasswdfile >>/etc/master.passwd

which will concatenate it to your existing master.passwd file.
then run /usr/sbin/vipw, remove the duplicate entries and make other
modifications as necessary. exiting will update the *db files.

you may want to look at the resulting /etc/passwd file to see if it is
updated also,but i don't remember.

there are also other considerations: the home directories,
permissions,
groups, etc.

hope this helps,
GMac
----------

hope too this helps 

t
  _______________________________________________________||___________________
                                                   __||
  Perfection is reached, not when there is no  __||     thomas graichen
  longer anything to add, but when there   __||    freie universitaet berlin
  is no longer anything to take away   __||           fachbereich physik
                                   __||                      
  - Antoine de Saint-Exupery - __||        graichen@mail.physik.fu-berlin.de
  ___________________________||__________________graichen@FreeBSD.org_________