Date: Tue, 3 Mar 2009 22:02:14 -0700 From: Tim Judd <tajudd@gmail.com> To: Olivier Nicole <on@cs.ait.ac.th> Cc: freebsd-questions@freebsd.org, lacalling@gmail.com Subject: Re: I cannot login coz bash is deinstalled Message-ID: <ade45ae90903032102l6320f090o8fd22905a66def60@mail.gmail.com> In-Reply-To: <200903040449.n244nLMc052523@banyan.cs.ait.ac.th> References: <de8d0ce00903032040l2a2e9c5o6e5f5f8cc9c177e1@mail.gmail.com> <200903040449.n244nLMc052523@banyan.cs.ait.ac.th>
next in thread | previous in thread | raw e-mail | index | archive | help
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?ade45ae90903032102l6320f090o8fd22905a66def60>