From owner-freebsd-questions@FreeBSD.ORG Tue Nov 29 02:32:56 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 EC24416A41F for ; Tue, 29 Nov 2005 02:32:55 +0000 (GMT) (envelope-from iqgrande@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 430A443D5F for ; Tue, 29 Nov 2005 02:32:53 +0000 (GMT) (envelope-from iqgrande@gmail.com) Received: by wproxy.gmail.com with SMTP id 55so169910wri for ; Mon, 28 Nov 2005 18:32:52 -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=V0Bswh4GWszqpouhNveq46/NmCY+JW0EPRsjsNrQr8ZwQu9bbmOooTZqsNIaiw+irD/g143Kk44bSIZiq3L//2tWUpeYUUWszVcbNGzpekZ0vFEG23ZpmiWoBRfubwZNrqzYqJtFunDyCtqQnApXwevmti1LvXe9myATV8/ktH8= Received: by 10.54.118.6 with SMTP id q6mr7980117wrc; Mon, 28 Nov 2005 18:32:52 -0800 (PST) Received: from ?192.168.0.2? ( [24.98.225.185]) by mx.gmail.com with ESMTP id 14sm685469wrl.2005.11.28.18.32.51; Mon, 28 Nov 2005 18:32:52 -0800 (PST) In-Reply-To: <44d5kklve0.fsf@be-well.ilk.org> References: <4E75A276-3D18-47D2-ADB4-96B85B182843@gmail.com> <44d5kklve0.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: Content-Transfer-Encoding: 7bit From: "Anthony M. Agelastos" Date: Mon, 28 Nov 2005 21:32:48 -0500 To: Lowell Gilbert X-Mailer: Apple Mail (2.746.2) Cc: freebsd-questions@freebsd.org 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: Tue, 29 Nov 2005 02:32:56 -0000 On Nov 28, 2005, at 9:06 AM, Lowell Gilbert wrote: > "Anthony M. Agelastos" writes: > >> Hello all, >> >> During the upgrade to 6.0, I may have created the user _dhcp >> incorrectly. I was made aware of the problem when I noticed the >> message during boot: >> >> Setting hostname: ast.home.iq. >> rl0: link state changed to DOWN >> rl0: no link ....rl0: link state changed to UP >> got link >> no such user: _dhcp, falling back to nobody >> DHCPREQUEST on rl0 to 255.255.255.255 port 67 >> DHCPACK from 192.168.0.1 >> bound to 192.168.0.4 -- renewal in 129600 seconds. >> >> So, as root, I tried to create them and delete them. This is proving >> unsuccessful. See below. >> >> 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 >> >> Are there any recommendations? I am running FreeBSD 6.0-STABLE. Some >> additional information is below. Thank you so much for your >> assistance. I checked the mailing list as well as Google and did not >> find a fix for this particular problem. I found someone mentioning >> that the database may need to be rebuilt (however I have no idea how >> to do this). >> >> ast# cat master.passwd | grep dhcp >> _dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologin >> ast# cat passwd | grep dhcp >> _dhcp:*:65:65:dhcp programs:/var/empty:/usr/sbin/nologin >> ast# cat group | grep dhcp >> _dhcp:*:65: >> ast# uname -a >> FreeBSD ast.home.iq 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Nov 5 >> 21:29:34 EST 2005 root@ast.home.iq:/usr/obj/usr/src/sys/IQKERNEL >> i386 > > pwd_mkdb(8)? 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.