From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 18 18:04:48 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 842FE16A41F for ; Tue, 18 Oct 2005 18:04:48 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from wjv.com (fl-65-40-24-38.sta.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDEC443D45 for ; Tue, 18 Oct 2005 18:04:45 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.13.5/8.13.1) with ESMTP id j9II4hpW062606 for ; Tue, 18 Oct 2005 14:04:43 -0400 (EDT) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.13.5/8.13.1/Submit) id j9II4hkP062605 for freebsd-hackers@freebsd.org; Tue, 18 Oct 2005 14:04:43 -0400 (EDT) (envelope-from bv) Date: Tue, 18 Oct 2005 14:04:43 -0400 From: Bill Vermillion To: freebsd-hackers@freebsd.org Message-ID: <20051018180443.GC62265@wjv.com> References: <20051018120048.9279F16A41F@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051018120048.9279F16A41F@hub.freebsd.org> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED, J_CHICKENPOX_66 autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on bilver.wjv.com Subject: Re: system password's file --failed X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bv@wjv.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 18:04:48 -0000 Throwing caution to the wind and speaking without thinking about what was being said on Tue, Oct 18, 2005 at 12:00 , freebsd-hackers-request@freebsd.org blurted this: > Send freebsd-hackers mailing list submissions to > Date: Tue, 18 Oct 2005 12:17:54 -0000 (UTC) > From: iwan@staff.usd.ac.id > Subject: Re: system password's file --failed > To: freebsd-hackers@freebsd.org > Hi all, > I failed this steps. FreeBSD cannot recognized my username. > I will try it again. Have anybody another solution ?? > Thanks before. > regards. > If you used those steps no wonder it failed. shadow is NOT at all like master.passwd. ... > >> I would suggest you to try the below and make sure this > >> works > >> 1 ) Install a new freebsd server > >> 2 ) create a user on your linux machine say with > >> username > >> freebsd and some > >> password > >> 3 ) now copy the data in your /etc/passwd file of linux > >> machine to freebsd > >> machine And the /etc/passwd in Linux and System V [or all the old Unix systems] is not the same format as in BSD. > >> 4 ) Also copy the /etc/shadow file to freebsd server and > >> renmae it as > >> /etc/master.passwd I'm surprised you could even log in with that. > >> 5 ) Also copy /etc/groups Groups are used differently by default in BSD. Don't blindly apply Linux knowledge to BSD> > >> 6 ) Now try to login to freebsd machine with the new > >> user > >> created on the > >> linux machine. > >> Note : Please create a copy of the original file on > >> freebsd machine before > >> you change the real file And DO NOT LOG OUT - as you might not be able to log in again. Look at the file formats of BSD and Linux. You'll note extra fields. If you have separate passwd and shadow on Linux, you need to manipulate those before putting in BSD. You can simply cut and paste [using Unix cut/paste not a gui thing] to add the fields and put the encrypted portion of shadow where it belongs. And put that in master.passwd and USE VIPW - which will check the file. If master.passwd is correct when you exit vipw it will build /etc/passwd. I don't recall the script the other person posted, but the directions above are really wrong. Bill -- Bill Vermillion - bv @ wjv . com