Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 1996 01:32:06 -0700
From:      Nate Williams <nate@rocky.sri.MT.net>
To:        jkh@violet.berkeley.edu (Jordan K. Hubbard)
Cc:        hackers@freebsd.org
Subject:   Re: this comes up a lot more these days.. :)
Message-ID:  <199601090832.BAA13303@rocky.sri.MT.net>
In-Reply-To: <199601090800.AAA00394@violet.berkeley.edu>
References:  <199601090800.AAA00394@violet.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
[ I should have been in bed 3 hours ago.  Stupid sound-cards ;) ]

> Subject: Linux -> FreeBSD Migration
..
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
----------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601090832.BAA13303>