Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SebTardif opened this issue May 4, 2022 · 4 comments

Comments

@SebTardif
Copy link

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.

@FingerlessGlov3s
Copy link

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

@stale
Copy link

stale bot commented Jul 10, 2022

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

@stale stale bot added the stale label Jul 10, 2022
@james-arawhanui
Copy link

james-arawhanui commented Oct 3, 2023

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
Copy link

stale bot commented Oct 3, 2023

Removed stale label.

@stale stale bot removed the stale label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants