Visitar URL original
Has a hard time to get a user jail in the root of a folder that we also have access to write · Issue #110 · emberstack/docker-sftp · GitHub
Skip to content

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

Open

Description

@SebTardif

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.

Activity

  1. FingerlessGlov3s commented on May 26, 2022

    @FingerlessGlov3s

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

  2. stale commented on Jul 10, 2022

    @stale

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

  3. james-arawhanui commented on Oct 3, 2023

    @james-arawhanui

    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
    
  4. stale commented on Oct 3, 2023

    @stale

    Removed stale label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions