How do I change my default shell?

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
On my school's Sun machine, I tried to change the default shell from csh to tcsh using:

>chsh

a prompt will ask me to enter the path to the new shell that I want.. I do that, log out and log in again, but it is still csh..

Then I tried this

>chsh <myusername> /bin/tcsh

The command executed without problems, but it still remains csh..

What am I doing wrong here?

/noobie :eek:
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
What you did looks right to me. I assume you're checking success by looking in a process table or something? The two shells are very similar after all.

edit: Another thought... since this is on a Sun, I'm guessing you're part of a large network. Is chsh the correct way to change shells in your network environment. In some NIS-type setups, you need a special command like ypchsh to change the NIS info.