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