Change bash how shell by default

Hello, the first I am maxxcan and I love Haiku since I knew it five o six years ago. Now I am trying to write some tutorials in spanish to newbies.

In Linux my main shell is zsh and I see that in Haiku we have zsh and fish. The problem is that I can´t change to diferent shell by default.

Anyone can help me?

Thank you very much and happy new year

I haven’t tried to do that since the BeOS days so I’m not sure if it still works the same. But this is how you used to do it:

http://betips.net/1997/09/09/change-your-shell/

Edit the passwd file located /boot/system/settings/etc

At the end of every line should be :
/bin/bash
Change it as you like and reboot your computer.

Would be fine then you does not make a new website for it. You can send your tutorials to me or loglas from the besly knowledge base: http://www.besly.de, so your tutorials are on a position people can find it faster.

ok I´ll do that. Thank you very much

The solution of change the password file works. Thank you

I wonder if support for chsh is doable?

It’s jsut a tool that edits the password file for you (making sure that you don’t make a syntax error and prevent the OS from parsing the file and lock everyone out of starting a shell). Should be easy enough to write or port a version of it?

I guess it was not done because in Haiku, if you break that file, you can always fix it from the GUI. So the consequences aren’t as catastrophic as on UNIX?

1 Like

Thanks a bunch for the insight. Over the weekend I was thinking of switching my default shell and searched the forums on the subject. I tried chsh knowing that it was most likely not supported. Not sure how useful chsh would be for the average Haiku power user.