Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there any reason why I shouldn’t change root’s default shell to bash from the default sh?

bash Default sh Shell
0
Posted

Is there any reason why I shouldn’t change root’s default shell to bash from the default sh?

0

Regarding the root shell… well, there are differing schools of thought. In an ideal world it doesn’t matter what roots default shell is because any shell script should be written properly to not depend on the default shell. Furthermore, most modern shells (BASH and ZSH, both included by default in Solaris since Solaris9) can handle plain ol’ Borne just fine anyway, which is the default shell for root. So, if we’re talking about your workstation and your just tired of su’ing to root and then immediately starting bash, over and over and over, then sure, have at it. However, on most servers you shouldn’t change the default shell, if for no other reason than in any server enviroment you want to, ideally, change the system as little as possible.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123