Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jan 2000 17:05:32 +0100
From:      Gunnar Flygt <gunnar@pluto.sr.se>
To:        Gene Harris <zeus@tetronsoftware.com>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.org>
Subject:   Re: Root login shell problem
Message-ID:  <20000127170532.A19350@sr.se>
In-Reply-To: <Pine.BSF.4.10.10001270904530.2735-100000@tetron02.tetronsoftware.com>; from zeus@tetronsoftware.com on Thu, Jan 27, 2000 at 09:08:30AM -0600
References:  <007a01bf68d5$97f4f880$350a0a0a@bussert.com.Bussert> <Pine.BSF.4.10.10001270904530.2735-100000@tetron02.tetronsoftware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000127170532.A19350>