Changing root's shell

jan gestre freebsd.ph at gmail.com
Wed Aug 9 01:24:05 UTC 2006


On 8/9/06, ross <ross.penner at gmail.com> wrote:
>
> so it seems changed root login's shell to /usr/bin/bash which doesn't
> exist. now I can't login to root at all. Oh yes, sudo isn't installed. How
> would you grand masters of FreeBSD fix my embarrasing mistake.
>
> Thanks!
>
> --
>
login using single user mode during bootup then revert back to old shell
using:

# pw user mod root -s /bin/csh

since your familiar with bash you can make csh behave like bash by editing
.cshrc and adding set autolist.

HTH


More information about the freebsd-questions mailing list