emberstack/docker-sftp

Has a hard time to get a user jail in the root of a folder that we also have access to write

SebTardif opened this issue · 4 comments

I tried so many set of config about chroot (directory/startpath + Directories) and I'm unable to match my basic requirements:

  • The default folder, is also the root/jail folder
  • That folder doesn't have .ssh inside
  • The user can write and read file and folder in that root/jail folder.

I think more examples of config based on defined use case could help.

I've been unable to set the chroot directory, tried global and per user.

stale commented

Automatically marked as stale due to no recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

I've been having this issue also, seemingly no control over each user's Chroot, was attempting to make a two users with a shared Chroot.

EDIT: Might be based on filesystem permissions, as I mount a persistent volume.

EDIT 2: Upon further testing I have discovered that users can only see directories they own

chown myuser:sftp-user-inventory /files/shared
stale commented

Removed stale label.