Q: Convert from tcsh to bash I'm trying to convert from a tcsh to bash. Things I have tried:
chsh
chsh -s /bin/bash

chsh: can only change local entries; use ypchsh instead

ypchsh
ypchsh /bin/bash

ypchsh: can't get local yp domain: Local domain name not set

I discovered I don't have sudo access after trying
sudo -s /bin/bash *username*

Then I tried creating a .cshrc file:
echo "I exist in .cshrc"

setenv SHELL /bin/bash
exec /bin/bash --login

When I do this however, I can't log in to my account. I enter my username and password and it looks like it's logging me in, but instead it kicks me back out to the login screen. 
I know it has something to do with the last two lines, and not the file in general because I tested it again with just the echo command and I had no problems. 

A: So I figured out that the error was coming from the exec /bin/bash --login line. When I removed that the computer worked fine and I was in bash; however it wasn't running my bash startup file that had a number of different libraries I needed. Still not sure how to get those to load (without manually running exec bin/bash) on the original machine, but I actually run on a university server so I edited the .cshrc to the following:
echo "I exist in .chshrc"

setenv SHELL /bin/bash
if ($HOSTNAME = *server name*) then
    exec /bin/bash
end if

This seems to have solved my specific problems with this, though I doubt this is a general solution for anyone having this problem. 
