Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In my production environment, my default shell is an old version of csh and I cannot change it. How can I correctly login to my preferred shell? In particular, I would like to use bash. However the system bash is also very old so I compiled a newer version in ~/bin. The perfect scenario will be, I am using ~/bin/bash after login (e.g., ssh).

share|improve this question

migrated from stackoverflow.com Jun 1 '13 at 2:12

This question came from our site for professional and enthusiast programmers.

3 Answers 3

up vote 2 down vote accepted

Put something like:

exec ~/bin/bash

in your login script (that's .login for csh).

share|improve this answer
    
Thanks. The .cshrc in my home is fixed and turns out .login is the place I should go. –  Ivan Z. G. Xiao Jun 4 '13 at 1:05

Inside your .cshrc you could put an exec ~/bin/bash.

This executes bash when csh is loaded.

share|improve this answer

you need to be able to edit your /etc/passwd file

root:x:0:0:root:/root:/bin/bash

the last part is the shell loaded on login, If you want to use one in your home dir change the /bin/bash to new shell

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.