Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

A user account has it's shell defined in passwd file as bash. I would like to change this user account's shell to tcsh for non-interactive jobs (like ssh ), but keep interactive shell to bash. Is there any way to configure this on the system?

share|improve this question
You can use "ForceCommand" option in config of sshd with specified full path to new shell. However it will not restrict user from access of initial shell. Could you please elaborate what do you mean by non-interactive? –  Navern Aug 27 '14 at 15:29
If you intend to use tcsh for some remote scripts called by ssh, you merely can invoke tcsh in you ssh command line. –  tonioc Aug 28 '14 at 7:38

Your Answer


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

Browse other questions tagged or ask your own question.