[UCLA-LUG] Changing your login shell

Glenn Glazer gglazer@pic.ucla.edu
Fri, 25 Feb 2000 11:36:10 -0800


Well, if you have root access, you could just edit the last field of your
/etc/password file.

Otherwise, and perhaps more safely, have a .cshrc file present in your
directory and no .profile.  On some UNIXes, this is sufficient.  Otherwise,
create a .login file that has the two lines:

         csh
         source ./.cshrc 

(you may or may not need the ./ depending on your path at the time of
execution)

Best,

Glenn

At 11:20 AM 2/25/00 -0800, you wrote:
>This is actually a UNIX questions, since linux (at least my version 
>at home) has the chsh command.
>
>How do I change my login shell (this is for an account I have).  My 
>current default is ksh, but if I wanted to switch it to tcsh, how 
>would I go about that.  The linux reference material I have say to 
>use chsh, but that doesn't exist in the UNIX I am using.  If I just 
>copy the chsh program over to my bin file and run it, will that do 
>the trick, or do I need to modify or add a . file in my home 
>directory, or what?  I want to ask before I do anything, because a 
>mistake here could make it so that I cannot even log in.
>
>Thanks for any help.
>
>msd
>*************************
>"One of the penalties for refusing to participate in politics is that 
>you end up being governed by your inferiors."
>	- Plato
>
>_______________________________________________
>UCLALUG Linux mailing list - Linux@linux.ucla.edu
>http://linux.ucla.edu/mailman/listinfo/linux