bash - superuser

David Landgren david at landgren.net
Mon Dec 20 03:29:40 PST 2004


Giuliano Cardozo Medalha wrote:
> Hi,
> 
> I have a machine with FreeBSD 5.3 - release -p2.
> 
> I have installed bash from ports.
> 
> How is possible to use bash in root account ?
> 
> Thanks a lot

Don't.

Leave /bin/sh as your shell. If you want to run bash as root, log in as 
usual and then run 'exec bash' to replace your current shell with bash. 
This is a basic rule of hygiene when working as root.

You'll appreciate working this way when you lose your /usr partition one 
day...

David



More information about the freebsd-questions mailing list