From owner-freebsd-hackers Tue Jan 9 00:29:42 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA21340 for hackers-outgoing; Tue, 9 Jan 1996 00:29:42 -0800 (PST) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id AAA21330 for ; Tue, 9 Jan 1996 00:29:36 -0800 (PST) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id BAA13303; Tue, 9 Jan 1996 01:32:06 -0700 Date: Tue, 9 Jan 1996 01:32:06 -0700 From: Nate Williams Message-Id: <199601090832.BAA13303@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.. :) In-Reply-To: <199601090800.AAA00394@violet.berkeley.edu> References: <199601090800.AAA00394@violet.berkeley.edu> Sender: owner-hackers@freebsd.org Precedence: bulk [ 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 ----------