Changing root's shell

Garrett Cooper youshi10 at u.washington.edu
Tue Aug 8 20:39:16 UTC 2006


Philip Hallstrom 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.
>
> Boot into single user mode, then vipw the password file and change it 
> back.
Just as a note of warning, if you have any issues with your ports or 
libraries, you have a high probability of having issues with bash in the 
future as a shell.
For example, I used to set my root shell to bash, before I had an issue 
with some missing libraries after an upgrade--which caused a great deal 
of grief, in particular when I went into safe mode as it couldn't load 
the shell properly. From then on I have used csh as the default shell, 
and then switch to bash when needed.
-Garrett


More information about the freebsd-questions mailing list