From owner-freebsd-questions@FreeBSD.ORG Sat Nov 26 22:45:43 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5909316A41F for ; Sat, 26 Nov 2005 22:45:43 +0000 (GMT) (envelope-from fasterdisco@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 454E343D5C for ; Sat, 26 Nov 2005 22:45:42 +0000 (GMT) (envelope-from fasterdisco@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so724848nzd for ; Sat, 26 Nov 2005 14:45:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=luSgTZcglRCuwPRvT8/CUdBOUAWsggyve9rVJLlAQEVNdhaQaGGVLPNsqcDhmWf8kf3W7RtuJQ3QkSIzCt1AxVz8Prx44XV9tb/3o5RrqmvY240VSOpC/jv2wpmQQpFHVg8PmS3H1tcHBxa7DSLuuUJLZj5N7vDAyewEgawyYrs= Received: by 10.65.61.11 with SMTP id o11mr2779767qbk; Sat, 26 Nov 2005 14:45:41 -0800 (PST) Received: by 10.65.43.6 with HTTP; Sat, 26 Nov 2005 14:45:41 -0800 (PST) Message-ID: Date: Sat, 26 Nov 2005 17:45:41 -0500 From: "matt ." To: freebsd-questions@freebsd.org In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Fun with passwd files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Nov 2005 22:45:43 -0000 Ah-ha....seems if I do anything to update the /etc/passwd file, it'll populate with the latest /etc/master.passwd entries...for example I just updated the default shell for a different users, and voila, I see good ol' jschneider added to the /etc/passwd file now. So, I was likley only seeing previous users in there because I was randomly updating other user attributes. The question now is this...I see a switch for pwd_mkdb which is "-p", meaning generate a /etc/passwd file. Going forward, when manually adding a new user to /etc/master.passwd, am I now to issue "pwd_mkdb -p " to properly update /etc/passwd at the same time? Seems to me this is the thin= g to do, however it's my first time really messing with this sort of thing... matt On 11/26/05, matt . wrote: > > Hey folks, > > I wonder if anybody can help me out here... > > FreeBSD 6.0-RELEASE > > I'm doing a user migration. I'm manually populating the > /etc/master.passwd with user entries from the old box. I run pwd_mkdb on > the master.passwd file. This was working dandy until a few moments ago. > I added a user, then attempted to delete the user using "pw userdel > " and I get this: > > host# pw userdel jschneider > pw: user 'jschneider' does not exist: No such file or directory > > This was weird. I can usermod, usershow and finger "jschneider" just > fine. When I change jschneider's password using passwd, magically I am n= ow > able to delete him using "pw userdel". > > I found out jschneider was being added to /etc/master.passwd but not into > /etc/passwd. However previous users I had manually added using the same > method did end up in the /etc/passwd file. So I'm confused. Now it seem= s > any user I manually add to master.passwd and run pwd_mkdb on, doesn't get > populated into /etc/passwd. Any clue what's going on here? > > kind regards, > > matt > >