Changing the shell with chsh

Posted: Wed 23rd Jul 2008@11:07

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!



Last edited: Wed 23rd Jul 2008@11:10

Actions: Trackbacks Disabled, Permalink,

Comments

Geffy said:

23 Jul 2008 @ 12:45

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.

Name
Email
Link (Supports Pavatar)
Comment

To verify you are not a retarded spambotting fool of a took, enter the following text:

monkeyfacedbaboon