From owner-freebsd-isp@FreeBSD.ORG Fri Mar 4 17:52:16 2005 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A63816A4CE for ; Fri, 4 Mar 2005 17:52:16 +0000 (GMT) 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 4E7FF43D31 for ; Fri, 4 Mar 2005 17:52:15 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.12.11/8.13.1) with ESMTP id j24HpuXG093365; Fri, 4 Mar 2005 12:51:56 -0500 (EST) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.11/8.13.1/Submit) id j24HptFb093364; Fri, 4 Mar 2005 12:51:55 -0500 (EST) (envelope-from bv) Date: Fri, 4 Mar 2005 12:51:55 -0500 From: Bill Vermillion To: Keith Woodworth Message-ID: <20050304175155.GA93308@wjv.com> References: <20050304091846.G68169@pop.citytel.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050304091846.G68169@pop.citytel.net> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-1.6 required=5.0 tests=ALL_TRUSTED,J_CHICKENPOX_33, J_CHICKENPOX_66 autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on bilver.wjv.com cc: freebsd-isp@freebsd.org Subject: Re: Passwd file oddity. X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bv@wjv.com List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2005 17:52:16 -0000 When asked his whereabouts on Fri, Mar 04, 2005 at 09:29 , Keith Woodworth took the fifth, drank it, and then slurred: > I just setup a new box w/ FBSD 4.10 as we are slowly migrating from > BSD/OS. > Ive moved a few machines to FBSD and am now to the point I just > copy the passwd and master.passwd files over from one machine to > another for users. > Our main mail server has been running 4.10 for 5 months now and > copied the passwd files over from the mail server to the new > machine. Same OS version, same ssh version ( I upgraded from the > stock sshd that comes with 4.10) as well as a few other pieces > of software. > The wierd thing is that the new machine still seems to be trying > to use the old passwd files. I try ssh'ing into the new machine > using my current passwd and it fails. But I can login via my old > passwd that I used to setup this machine. > I went to setup a directory for a user, went to chown it to the > user but get an error unknown user, even though the user is in > passwd and master.passwd. > It seems like the machine is using another passwd file. I have > passwd/master.passwd in /etc. Is there somewhere else this info > is hidden? The passwd file is a combo of standard crypt() and > md5 hashes, which does not seem to bother the mailserver for > various things, but seems to be having a problem on this new > machine, though that should not be an issue as far as I can > tell. > Ive not run into this before and have copied the passwd files > over from machine to machine before a few times with no problem. > Anyone have an idea here? Absolutely. master.passwd contains all the information about the users BUT when you add users normally the pwd_mkdb program is run afterword to generate pwd.db. So since you copied the files over you must run pwd_mkdb to generate a new pwd.db. That is the file the system uses - and why it gained so much performance over the old SysV things that actually read the password file each and everytime - while a database read is much faster. Bill -- Bill Vermillion - bv @ wjv . com