Open vvaves opened 4 years ago
I wonder if we can do more about it then just documentation.
Question we should work on
I don't know much about csh shell. Can you give me an example which commands used by BIT do fail on a csh shell? I can not imagine one. To my understanding regular commands like command --switch argument
should work on bash/sh and csh. And to my knowledge BIT doesn't use more complex shell commands.
I think about if BIT should check the remote shell offered via SSH and using an allow- and/or deny-list of shells. Or we should force the shell to use with adding extra commands (bash -l
) when using ssh
commands.
Can an ssh client force a specific shell on server side? (ask some admins about the "unix way")
I don't think so. You might run bash
once you are logged in, but specifically on a FreeNAS (=FreeBSD) machine, it's possible that bash is not even installed.
Can you give me an example which commands used by BIT do fail on a csh shell?
I don't have a good idea, either. I'm somewhat familiar with FreeBSD and use its default shell csh
sometimes, but I'm unsure about this problem. Something along the lines of $(command)
substitution or environmental variables, maybe.
I was trying to get back in time running pointing to my freenas server but it wouldnt create the folder on the remote server. Ended up just having to change the ssh user's shell to bash and everything worked! default on freenas is csh shell.
Thanks all working great!