Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2003 16:23:15 -0700
From:      Paul Hoffman <phoffman@proper.com>
To:        Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Importing a foreign passwd file to FreeBSD
Message-ID:  <p0521060ababcfe5338b1@[66.125.125.92]>
In-Reply-To: <44fzooc425.fsf@be-well.ilk.org>
References:  <p05210619babbc2534d66@[63.202.92.152]> <44fzooc425.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At 1:54 PM -0400 4/11/03, Lowell Gilbert wrote:
>Paul Hoffman <phoffman@proper.com> 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!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p0521060ababcfe5338b1>