From owner-freebsd-questions Thu Jan 27 8: 5:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dart.sr.se (dart.SR.SE [193.12.91.98]) by hub.freebsd.org (Postfix) with ESMTP id 59D73155C2 for ; Thu, 27 Jan 2000 08:05:38 -0800 (PST) (envelope-from gunnar@pluto.sr.se) Received: from honken.sr.se ([134.25.128.27]) by dart.sr.se (8.9.3/8.9.3) with ESMTP id RAA23910; Thu, 27 Jan 2000 17:05:32 +0100 (CET) (envelope-from gunnar@pluto.sr.se) Received: from pluto.sr.se (pluto.SR.SE [134.25.193.91]) by honken.sr.se (8.9.3/8.9.3) with ESMTP id RAA28367; Thu, 27 Jan 2000 17:05:32 +0100 (CET) (envelope-from gunnar@pluto.sr.se) Received: (from gunnar@localhost) by pluto.sr.se (8.9.3/8.9.3) id RAA19470; Thu, 27 Jan 2000 17:05:32 +0100 (CET) (envelope-from gunnar) Date: Thu, 27 Jan 2000 17:05:32 +0100 From: Gunnar Flygt To: Gene Harris Cc: FreeBSD Questions Subject: Re: Root login shell problem Message-ID: <20000127170532.A19350@sr.se> Reply-To: Gunnar Flygt References: <007a01bf68d5$97f4f880$350a0a0a@bussert.com.Bussert> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from zeus@tetronsoftware.com on Thu, Jan 27, 2000 at 09:08:30AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Jan 27, 2000 at 09:08:30AM -0600, Gene Harris wrote: > Login is as someone with shutdown rights,and issue the > command shutdown now. This will get you a question asking > you which shell to use when it hits single user mode. Enter > /bin/sh and then you can go to etc and edit your passwd > file. > > I wouldn't autoselect bash as root's shell. Why? If you > ever have a problem with you HD, /usr may not be mounted and > you won't get a shell. I generally leave root with csh and This is NOT a problem with FreeBSD. When you boot in single user mode, you get a question "Use /bin/sh" as login shell. So there's no problem, as I've found with using bash as root's login shell. > then switch to bash when necessary, temporarily. A little > more typing, but... > > *==============================================* > *Gene Harris http://www.tetronsoftware.com* > *FreeBSD Novice * > *All ORBS.org SMTP connections are denied! * > *==============================================* > > On Thu, 27 Jan 2000, Matthew Jonkman wrote: > > > I made a typo in my root chsh to point it to /bin/bash rather than > > /usr/local/bin/bash. As a result I'm locked out of my root account. Even if > > I login as root from the console it kicks me back out to a login. > > > > I don't know much about single user mode. Will this allow me to get back in > > to change the shell? > > > > Thanks > > ========================================= > > > > Matthew Jonkman > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- __o regards, Gunnar ---_ \<,_ email: flygt@sr.se ---- (_)/ (_) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message