*BSD News Article 58245


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!newsfeed.internetmci.com!news.sprintlink.net!pine.netten.net!usenet
From: GMac@netten.net (Gary McCraw)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Moving users from Linux to BSDI
Date: 6 Jan 1996 16:48:28 GMT
Organization: T-NET
Lines: 47
Message-ID: <4cm94t$rqg@pine.netten.net>
References: <4cfsqa$h8e@sleet.snowhill.com>
NNTP-Posting-Host: gmac.netten.net
Mime-Version: 1.0
Content-Type: Text/Plain; charset=US-ASCII
X-Newsreader: WinVN 0.99.6

In article <4cfsqa$h8e@sleet.snowhill.com>, fred@fart.com says...
>
>   We are slowly moving over to BSDI for our servers. We have ran BSDI 
for 
>some time as a DNS/WEB/NEWS server. The question I have is, what can I 
do 
>to move our passwd data to BSDI from Linux? I am under the assumtion 
>the two OS's do the password encryption differently. And is there an 
>easy<G> way to  get all the user directories created? The Linux vs. 
BSDI 
>home directories are not the same as far as contents so I can't just 
tar 
>them and move them over.
>
>norm@snowhill.com
>


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