Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Mar 2009 13:49:31 +0800
From:      lacalling <lacalling@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: I cannot login coz bash is deinstalled
Message-ID:  <de8d0ce00903032149n77cad154ja2ae42cfa342eb33@mail.gmail.com>
In-Reply-To: <de8d0ce00903032111i2fa1b83erd277b623903986e0@mail.gmail.com>
References:  <de8d0ce00903032040l2a2e9c5o6e5f5f8cc9c177e1@mail.gmail.com> <200903040449.n244nLMc052523@banyan.cs.ait.ac.th> <ade45ae90903032102l6320f090o8fd22905a66def60@mail.gmail.com> <de8d0ce00903032111i2fa1b83erd277b623903986e0@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I tried to vi /etc/passwd and change the path of shell to sh from bash.
it did not work coz it is encrypted?

anyway i suceessed with chsh finally.


On Wed, Mar 4, 2009 at 1:02 PM, Tim Judd <tajudd@gmail.com> wrote:

>
>
> On Tue, Mar 3, 2009 at 9:49 PM, Olivier Nicole <on@cs.ait.ac.th> wrote:
>
>> Hi,
>>
>> > How can I change my shell to sh without logining?
>>
>> You cannot!
>>
>> But what you can:
>>
>> - boot in singkle user mode
>> - mount all your s=disks: mount -a
>> - edit /etc/passwd with your favourite editor
>>
>> Bests,
>>
>> olivier
>
>
>
> WRONG!
>
> DO NOT EDIT /etc/passwd DIRECTLY!!!
> vipw, or change your EDITOR environment variable to use something else
> other than vi.
>
> Otherwise correct.
>
>



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