Quick BSD Question

Sep 3, 2001
131
0
0
Simple couple questions ...

First, how do I go about installing the bash shell? Is it as simple as cd'ing into /usr/ports/shells/bash2 and doing a 'make install'?

Second, after bash is installed how would I go about setting it as the default shell for either my user or the default system shell?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
"cd /usr/ports/shells/bash2&&sudo make&&sudo make install"

When that is done, vipw and edit that.

**WARNING: Do not set the root's shell to bash.
 
Sep 3, 2001
131
0
0
I dont have sudo configured, is it unsafe to install as root? Also, why is it a bad idea for root to use bash? Would it be safe for root to use tcsh?

Sorry 'bout all the questions, I'm a Linux convert trying to get accusomed to FreeBSD ... so for I gotta say I like it alot though :cool:
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0


<< I dont have sudo configured, is it unsafe to install as root? >>



Its fine, but for my one liner its easier to use sudo. If you have to start out as root it adds atleast one more line to my explanation ;)



<< Also, why is it a bad idea for root to use bash? Would it be safe for root to use tcsh? >>



Only use the default shell for root (csh I believe). Atleast have it configured to use that shell. You can start up bash manually or from one of the config files for the shell. Why? Because if soemthing bad happens and you need to get into root without mounting /usr/local you will be able to with the default shells. You will NOT be able to if you use bash. dynamically linked files deep in the file system are not good for necessary items.



<< Sorry 'bout all the questions, I'm a Linux convert trying to get accusomed to FreeBSD ... so for I gotta say I like it alot though :cool: >>



Good deal.
 
Sep 3, 2001
131
0
0
Understood, I'll leave root alone :D

I'm trying out tcsh with my user account now and may stick with that. It seems to do everything I need it too.

Thanks for the help.