Anyone familiar with SFTPGo? - eviltoast

I’m trying to set up a group so multiple users can share a folder. I created the group and a folder for it but I’m not what paths I should use for both. The result is that the user can see the group folder in the web UI but an error occurs after clicking on it:

“Failed to get directory listing: Unable to get directory contents"

Thanks

  • lckdscl [they/them]@whiskers.bim.boats
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    1 year ago

    Okay I think I might know what you mean? I just tried doing that and got it to work. We can compare what we did. Here’s mine.

    I created a shared folder called “Shared”

    then I create a group called “All” and mount the “Shared” folder to /shared

    I went to a user and add them to group “All”

    Examining that user’s files

    I can navigate into that shared folder and access everything (I have stuff in there already).

    • YurkshireLad@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      Ah thanks!! I hadn’t set the group home dir properly. I guess I don’t understand what that’s supposed to represent. I assumed it would include the group name somehow, but I set it to. /srv/sftpgo/data/%username% and it works.

    • YurkshireLad@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      I created another group and hit the same problem. I had to restart the docker container before it worked. Odd.

      • deadbeef@lemmy.nz
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Often on Linux group membership changes only take effect on login. So you could try logging out of your session and logging back in after your group changes to test that theory out.