Get access to csh (default freebsd shell) for root to solve login problem.

Jerry McAllister jerrymc at
Tue Jul 6 12:56:11 UTC 2010

On Sun, Jul 04, 2010 at 05:02:59PM +0100, Luca Renaud wrote:

> The root shell is now bash,but I was unaware that bash was not
> self-contained(it depends at least of,
> and doing some upgrades with ports I erased,now I cannot access
> the root account because bash is
> not operational and I need root access to install again,or any
> other way to solve the problem.
> So,how can I get access to csh for root without having access to a root
> shell(the previously defined bash does
> not work,and I need root access to change the shell for the root acount).

Just type   /bin/csh     on the command line
or put      /bin/csh     in /etc/passwd in the shell field
or put      #!/bin/csh   as the first line in a script.


>  Thanks.
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list