Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 1998 10:29:41 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Ibrahim Korpeoglu <korpe@cs.ucr.edu>
Cc:        FreeBSD Questions <questions@FreeBSD.ORG>
Subject:   Re: single user mode
Message-ID:  <19980319102941.25580@freebie.lemis.com>
In-Reply-To: <199803182355.PAA10184@hill.ucr.edu>; from Ibrahim Korpeoglu on Wed, Mar 18, 1998 at 03:55:08PM -0800
References:  <19980319102214.02651@freebie.lemis.com> <199803182355.PAA10184@hill.ucr.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 18 March 1998 at 15:55:08 -0800, Ibrahim Korpeoglu wrote:
>> On Wed, 18 March 1998 at 15:28:49 -0800, Ibrahim Korpeoglu wrote:
>>>
>>> Hi,
>>>
>>> How can I boot freebsd in single user mode?
>>
>> Specify the -s flag to the Boot: prompt.
>>
>>> is there a way to login with a different shell at the login prompt?
>>
>> Not directly.  Do you want to use different shells at different times?
>> There's nothing to stop you from starting one shell from another, for
>> example:
>>
>> $ csh
>>> bash
>> bash$ sh
>> $
>>
>> If you want to permanently change your shell, use chsh.  There's a
>> section about this in the most recent addenda to "The Complete
>> FreeBSD", second edition
>> (http://www.cdrom.com/titles/os/bsdbook2.htm)-- see
>> http://www.lemis.com/errata-2.html.
>
> Thanks for your mail.
>
> I actually did a stupid mistake.
> I changed the root shell to tcsh without making
> tcsh executable. So I can not login as a root.
> I just have an account which can not su root.
> So I dont know what I can do. Is there a way
> without reinstalling everything?

Hmmm.  Why can't you just boot single user and make tcsh executable?
When you boot single user, it prompts you for the name of the shell.
Take the default (sh).

Greg


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?19980319102941.25580>