From owner-freebsd-questions@FreeBSD.ORG Wed Aug 9 04:05:18 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 269FF16A4DF for ; Wed, 9 Aug 2006 04:05:18 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66B3743D77 for ; Wed, 9 Aug 2006 04:05:07 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by nf-out-0910.google.com with SMTP id g2so12486nfe for ; Tue, 08 Aug 2006 21:04:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HKbS3EJA3FT8vtgHckFxS9eMVuRNEuYqiAEM/ITjufBgaZyVwTBRDVqdVCy38sN1SINGTe6uiS8DIy9+TQ8tMJwMh4G2T/38Wk78eta0ywAykMxtdtWSeGtMi/J4nbd/wayjrWFQgINw0NTAQnMM521YntTWzLRD0VmdFIVdemU= Received: by 10.78.128.11 with SMTP id a11mr130672hud; Tue, 08 Aug 2006 21:04:58 -0700 (PDT) Received: by 10.78.143.11 with HTTP; Tue, 8 Aug 2006 21:04:58 -0700 (PDT) Message-ID: Date: Tue, 8 Aug 2006 21:04:58 -0700 From: "Nikolas Britton" To: "Ross Penner" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44D8F107.1020409@voidcaptain.com> <44D90E48.6070904@voidcaptain.com> 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 04:05:18 -0000 On 8/8/06, Ross Penner wrote: > On 8/8/06, Pete Slagle wrote: > > > > Ross Penner wrote: > > > > > how do you drop to single user mode? I just know how to get there at > > > boot time. > > > > > > Thanks. > > > > > > On 8/8/06, *Pete Slagle* < freebsd-questions@voidcaptain.com > > > > wrote: > > > > > > ross wrote: > > > > > > > so it seems changed root login's shell to /usr/bin/bash which > > doesn't > > > > exist. now I can't login to root at all. Oh yes, sudo isn't > > > installed. How > > > > would you grand masters of FreeBSD fix my embarrasing mistake. > > > > > > Dunno if any grand masters are about, but maybe I can help with this > > > > > one. > > > > > > - drop to single user mode: `shutdown now` > > > - when prompted for a shell, type /bin/sh > > > - `vipw /etc/passwd` and (carefully) change root's shell to > > /bin/sh > > > - type `exit` at the shell prompt to return from single user mode > > > > Normally you just do what I said, `shutdown now` as root, but I guess > > you can't do that in your situation. (Silly me.) So just reboot into > > single user mode instead, and follow the rest of the steps. > > > > Good luck, > > Pete > > > > interestingly, by hitting the power button on the front, it went through > the shutdown process without root permissions. > > 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. Did you re-mount the root partition in read/write mode? You know this whole thing could have been avoided if you tested things first: # bash bash: Command not found. -- BSD Podcasts @: http://bsdtalk.blogspot.com/ http://freebsdforall.blogspot.com/