From owner-freebsd-questions@FreeBSD.ORG Wed Aug 9 06:40:07 2006 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 F2B7316A4DA for ; Wed, 9 Aug 2006 06:40:06 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (59.Red-81-33-11.staticIP.rima-tde.net [81.33.11.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 568DE43D4C for ; Wed, 9 Aug 2006 06:40:05 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [192.168.7.193] (68.Red-80-34-55.staticIP.rima-tde.net [80.34.55.68]) by strange.daemonsecurity.com (Postfix) with ESMTP id 8213B2E14F; Wed, 9 Aug 2006 08:40:04 +0200 (CEST) Message-ID: <44D9833E.9080606@locolomo.org> Date: Wed, 09 Aug 2006 08:39:58 +0200 From: Erik Norgaard User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Ross Penner References: <44D8F107.1020409@voidcaptain.com> <44D90E48.6070904@voidcaptain.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, Pete Slagle Subject: Re: Changing root's shell 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: Wed, 09 Aug 2006 06:40:07 -0000 Ross Penner wrote: > On 8/8/06, Pete Slagle wrote: > I followed your steps but the problem remains. The /etc/passwd file is > edited but I still can't logon as root. When I changed the shell initially, > I used chpass. I > also tried changeing the /etc/master.passwd file to no avail. As mentioned by others: did you remount the root partition rw? In single user mode it is mounted read-only. 2nd: Did you use vipw, the pw command or just vi? If you can see your changes in the master.passwd file, then you might just need to rebuild the db files while still in single-user mode: # pwd_mkdb /etc/master.passwd # pwd_mkdb -p /etc/master.passwd If this fails, maybe some strange character sneaked in and building the database fails. Then you can recover the original master.passwd from the sources, /usr/src/etc/master.passwd, you still have to rebuild the db files. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9