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.
- Login to CentOs as root
- Open file /etc/passwd with the command “vi /etc/passwd” from the terminal
- My first line said: root:x:0:0:root:/root:/bin/bash
Change it to root:x:0:0:root:/root:/bin/csh - Save and close the file.
- Restart and your default will now be csh.
RSS Feed
Posted in
Tags: 
