I cannot login coz bash is deinstalled

Tim Judd tajudd at gmail.com
Tue Mar 3 21:02:16 PST 2009


On Tue, Mar 3, 2009 at 9:49 PM, Olivier Nicole <on at 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.


More information about the freebsd-questions mailing list