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 <taj...@gmail.com> wrote:

>
>
> On Tue, Mar 3, 2009 at 9:49 PM, Olivier Nicole <o...@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.
>
>
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to