Default from bash to csh in CentOs 4.6

In a simple post, my CentOs 4.6 default shell is BASH when I log in as root. I finally got tired of manually switching to csh with the ‘csh’ command. My goal was to set the default shell of Centos 4.6 to CSH. The solution was simple and I wish I had done it earlier.

  1. Login to CentOs as root
  2. Open file /etc/passwd with the command “vi /etc/passwd” from the terminal
  3. My first line said: root:x:0:0:root:/root:/bin/bash
    Change it to root:x:0:0:root:/root:/bin/csh
  4. Save and close the file.
  5. Restart and your default will now be csh.
Share and Enjoy:
  • Digg
  • DotNetKicks
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • MySpace
  • Netvibes
  • Reddit
  • StumbleUpon
You can leave a response, or trackback from your own site.

Leave a Reply