From owner-freebsd-questions Wed Jan 24 23:57:05 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA21561 for questions-outgoing; Wed, 24 Jan 1996 23:57:05 -0800 (PST) Received: from beeblebrox.pccc.jyu.fi (beeblebrox.pccc.jyu.fi [130.234.41.34]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA21545 for ; Wed, 24 Jan 1996 23:57:00 -0800 (PST) Received: (from kallio@localhost) by beeblebrox.pccc.jyu.fi (8.6.12/8.6.12) id JAA01233; Thu, 25 Jan 1996 09:56:20 +0200 Date: Thu, 25 Jan 1996 09:56:19 +0200 (EET) From: Seppo Kallio To: Morini Stefano cc: questions@freebsd.org Subject: Re: passwd linux and FreeBSD In-Reply-To: <31063A80.41C6@pt.tizeta.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Wed, 24 Jan 1996, Morini Stefano wrote: > -- > Morini Stefano > > On my System I have 200 user account on linux system. I don' t know > password of my users. > Is it possible use crypt password linux system and migrate on FreeBSD > system. You must have DES crypt installed. Default is MD5 in FreeBSD. Legal DES is eurocrypt (ftp.funet.fi /pub/unix/FreeBSD ... ) It goes something like this (if you can use emacs) 1. copy linux /etc/passwd to FreeBSD system 2. setenv EDITOR emacs 3. vipw 4. esc > (that is: go to the end of passwd file) 5. C-x i (that is: read the linux passwd file to the end of FreeBSD passwd file) 6. Make a little keyboard macro and add the extra ::0:0 after group id to every linux passwd file line. Something like: C-x ( C-a esc 3 esc x search-forward : ret ::0:0 C-n C-x ) esc 200 C-x e 7. Delete root etc. from linux passwd lines (duplicates) 8. exit vipw (that is: C-x C-c y) If emacs is strange to you: 1. Edit the estra ::0:0 into linux passwd file somehow to every line and delete root etc. duplicate lines. 2. Goto vipw and add the modified linux passwd file to the end of FreeBSD passwd file 3. Exit vipw Seppo U of Jyvaskyla Finland