From owner-freebsd-questions Tue Jul 28 16:59:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA18865 for freebsd-questions-outgoing; Tue, 28 Jul 1998 16:59:13 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from rm-rstar.sfu.ca (root@rm-rstar.sfu.ca [142.58.120.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA18810 for ; Tue, 28 Jul 1998 16:58:50 -0700 (PDT) (envelope-from wolstena@sfu.ca) Received: from beaufort.sfu.ca (wolstena@beaufort.sfu.ca [192.168.0.110]) by rm-rstar.sfu.ca (8.8.7/8.8.7/SFU-4.0H) with SMTP id QAA07182; Tue, 28 Jul 1998 16:58:09 -0700 (PDT) From: Paul Wolstenholme Received: by beaufort.sfu.ca (951211.SGI.8.6.12.PATCH1502/SFU-2.7C) id QAA20437 (from wolstena@sfu.ca); Tue, 28 Jul 1998 16:58:08 -0700 Message-Id: <199807282358.QAA20437@beaufort.sfu.ca> Subject: Re: Moving passwd files from LINUX to FreeBSD To: tinguely@plains.NoDak.edu (Mark Tinguely) Date: Tue, 28 Jul 1998 16:58:08 -0700 (PDT) Cc: alex@muse.org.au, freebsd-questions@FreeBSD.ORG In-Reply-To: <199807281318.IAA14422@plains.NoDak.edu> from "Mark Tinguely" at Jul 28, 98 08:18:38 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Coincedentally I was doing the same thing. Thanks for the tip. Now I have a stupid regular expression question. I wanted to do a quick and dirty change to the home directory path but I can't figure out how to add a "/" to the replacement string using sed. I wanted to make a global change to the home directory location -- /Users --> /home/edwina I tried: sed s/Users/home\/edwina/g passwd.file > passwd.new /Paul > > the encrypted passwords are kept in /etc/master.passwd in FreeBSD. > > the only problem between Linux and FreeBSD password files is that > FreeBSD has 3 extra fields between the group and the GEOS field. > a simple perl program or awk script can insert those fields: > > # awk -F: '{print $1":"$2":"$3":"$4"::::"$5":"$6":"$7}' < Linux_passwd > FreeBSD.passwd > > then make the /etc/master.passwd and /etc/passwd and database files: > > # pwd_mkdb -p FreeBSD.passwd > > --mark. > > 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