From owner-freebsd-questions@FreeBSD.ORG Fri Apr 11 16:23:22 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DC0237B401 for ; Fri, 11 Apr 2003 16:23:22 -0700 (PDT) Received: from above.proper.com (mail.proper.com [208.184.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id C847543F3F for ; Fri, 11 Apr 2003 16:23:21 -0700 (PDT) (envelope-from phoffman@proper.com) Received: from [66.125.125.92] (adsl-63-202-92-152.dsl.snfc21.pacbell.net [63.202.92.152]) by above.proper.com (8.12.9/8.11.6) with ESMTP id h3BNNGJN025548; Fri, 11 Apr 2003 16:23:16 -0700 (PDT) Mime-Version: 1.0 X-Sender: phoffprop@mail.proper.com Message-Id: In-Reply-To: <44fzooc425.fsf@be-well.ilk.org> References: <44fzooc425.fsf@be-well.ilk.org> X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . Date: Fri, 11 Apr 2003 16:23:15 -0700 To: Lowell Gilbert From: Paul Hoffman Content-Type: text/plain; charset="us-ascii" ; format="flowed" cc: freebsd-questions@freebsd.org Subject: Re: Importing a foreign passwd file to FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2003 23:23:22 -0000 At 1:54 PM -0400 4/11/03, Lowell Gilbert wrote: >Paul Hoffman writes: > >> Hi again. I'm setting up a new FreeBSD system to replace an old NetBSD >> one. I want to import all the users and their passwords. As an >> experiment on a test box, I tried importing the master.passwd and >> passwd file from the NetBSD box, that FreeBSD won't let me log in; I >> always get "Login incorrect". Nothing is logged in /var/log/anything, >> so I don't know why the login attempts are failing. The users' home >> directories are created, and they're in proper groups. >> >> Is this possible to do? > >Sure. I don't think there are any inter-platform issues, assuming >FreeBSD can handle whatever password format you were using on NetBSD. > >I think you just forgot to build the password database. See the man >pages for vipw(8) and pwd_mkdb(8). It was the pdw_mkdb. I thought vipw was supposed to run it, but it didn't. Doing it manually as 'pwd_mkdb /etc/master.passwd' (using the imported master.passwd) worked fine. Thanks!