bit-team / backintime

Back In Time - An easy-to-use backup tool for GNU Linux using rsync in the back
https://backintime.readthedocs.io
GNU General Public License v2.0
1.94k stars 182 forks source link

Please add remote server shell (SSH) requirements to docs or FAQ #1082

Open vvaves opened 4 years ago

vvaves commented 4 years ago

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!

buhtz commented 1 year ago

I wonder if we can do more about it then just documentation.

Question we should work on

  1. Can an ssh client force a specific shell on server side? (ask some admins about the "unix way")
  2. Minimally the shell type on server should be checked and an error should be thrown.
buhtz commented 1 month ago

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.

emtiu commented 1 week ago

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.