From owner-freebsd-questions@FreeBSD.ORG Thu Dec 1 02:28:44 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 7A53F16A41F for ; Thu, 1 Dec 2005 02:28:44 +0000 (GMT) (envelope-from iqgrande@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFE8543D45 for ; Thu, 1 Dec 2005 02:28:43 +0000 (GMT) (envelope-from iqgrande@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so149903nzo for ; Wed, 30 Nov 2005 18:28:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=N06tRsBeZz+SKae4aKYs6li+vXMR3RdmsePu0W1UhBohIGfczOK4yhEMPcrATabZ8Iz8B/HDkTfaheEf0+0HW3bwe1EV5mpc00dX9TznbW9HGVb6vtZv71kcWgRsVdco+kCG4ZCQ/ONxTBR1fx97d4BGvBkIp4/1zDApKR/QkiA= Received: by 10.36.251.17 with SMTP id y17mr1095936nzh; Wed, 30 Nov 2005 18:28:43 -0800 (PST) Received: from ?192.168.0.2? ( [24.98.225.185]) by mx.gmail.com with ESMTP id c12sm778465nzc.2005.11.30.18.28.42; Wed, 30 Nov 2005 18:28:43 -0800 (PST) In-Reply-To: <44r78zk1nm.fsf@be-well.ilk.org> References: <4E75A276-3D18-47D2-ADB4-96B85B182843@gmail.com> <44d5kklve0.fsf@be-well.ilk.org> <44r78zk1nm.fsf@be-well.ilk.org> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <15F6934E-031E-4EF4-A2E8-808F540A14B7@gmail.com> Content-Transfer-Encoding: 7bit From: "Anthony M. Agelastos" Date: Wed, 30 Nov 2005 21:28:40 -0500 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.746.2) Cc: Lowell Gilbert Subject: Re: _dhcp user problems 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: Thu, 01 Dec 2005 02:28:44 -0000 On Nov 29, 2005, at 8:46 AM, Lowell Gilbert wrote: > "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. That worked. Thank you. Out of curiosity, to make sure nothing else is non-optimal, what other user accounts were added from 5.4 to 6.0? I cannot recall, did not save anything from 5.4, and never saw anything related to this on any of the documentation on the website. I only knew to do this for DHCP because I strictly followed the Handbook in updating and diff'd the master.passwd files and figured things out for myself. Thank you so much.