docker-sftp icon indicating copy to clipboard operation
docker-sftp copied to clipboard

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

Open SebTardif opened this issue 3 years ago • 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.

SebTardif avatar May 04 '22 09:05 SebTardif

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

FingerlessGlov3s avatar May 26 '22 18:05 FingerlessGlov3s

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

stale[bot] avatar Jul 10 '22 12:07 stale[bot]

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

james-arawhanui avatar Oct 03 '23 05:10 james-arawhanui

Removed stale label.

stale[bot] avatar Oct 03 '23 05:10 stale[bot]