Changing the shell with chsh
Every time I ssh into my web server with a new account, I get the default shell, and I dont like it :) So therefore, I change it using:
chsh -s /usr/local/bin/bash
which (after logging out and back in again) makes my default shell stay as bash :)
Which is nice - I've only blogged this so I don't have to go back through my bash history to work out how I did it the last time! I also hope it helps someone else out too!
Comments
- I tend to always use the full path to the shell but I believe you can also do chsh -s bash and it will find bash in your PATH. Most Linux distos use bash as the /bin/sh shell, ie the default. BSD uses csh though often new accounts are created with sh which is a bit crap. tcsh is also quite nice but I usually install bash on most BSD servers I am able to. - Geffy on Wed Jul 23 2008 12:45:57 GMT+0000 (Coordinated Universal Time)