From owner-freebsd-questions@FreeBSD.ORG Tue Nov 29 13:46:15 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 629BC16A41F for ; Tue, 29 Nov 2005 13:46:15 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail23.sea5.speakeasy.net (mail23.sea5.speakeasy.net [69.17.117.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 844AC43D46 for ; Tue, 29 Nov 2005 13:46:11 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 2163 invoked from network); 29 Nov 2005 13:46:05 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail23.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 29 Nov 2005 13:46:05 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 4DD2F28425; Tue, 29 Nov 2005 08:46:05 -0500 (EST) Sender: lowell@be-well.ilk.org To: "Anthony M. Agelastos" References: <4E75A276-3D18-47D2-ADB4-96B85B182843@gmail.com> <44d5kklve0.fsf@be-well.ilk.org> From: Lowell Gilbert Date: 29 Nov 2005 08:46:05 -0500 In-Reply-To: Message-ID: <44r78zk1nm.fsf@be-well.ilk.org> Lines: 32 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: _dhcp user problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 13:46:15 -0000 "Anthony M. Agelastos" writes: > Hello and thank you for your reply. I tried the following and here is > where it got me: > > ast# pwd_mkdb -u _dhcp /etc/master.passwd > ast# pwd_mkdb -u _dhcp /etc/passwd > pwd_mkdb: corrupted entry > pwd_mkdb: at line #3 > pwd_mkdb: /etc/passwd: Inappropriate file type or format > ast# pwd_mkdb -u -p _dhcp /etc/passwd > usage: pwd_mkdb [-BCiLNp] [-d directory] [-s cachesize] [-u username] > file > ast# pwd_mkdb -p -u _dhcp /etc/passwd > pwd_mkdb: corrupted entry > pwd_mkdb: at line #3 > pwd_mkdb: /etc/passwd: Inappropriate file type or format > ast# pw userdel _dhcp > pw: no such user `_dhcp' > ast# pw useradd _dhcp -u 65 -c "dhcp programs" -d /var/empty -s /usr/ > sbin/nologin > pw: user '_dhcp' already exists > > Should I be doing something else? How can I wipe the slate clean with > users, groups, and accounts? I tried going through sysinstall and > when I try to add _dhcp as a user, it gives me an error code (The > `pw' command exited with unexpected status 74) after it mentions that > the requested shell "/usr/sbin/nologin" is not a valid user shell. > Any help would be greatly appreciated. Just the normal "pwd_mkdb /etc/master.passwd" and see if _dhcp is in /etc/passwd afterwards.