emberstack / docker-sftp

SFTP Server for Docker
MIT License
196 stars 51 forks source link

Permission issue #100

Closed Memes11 closed 2 years ago

Memes11 commented 2 years ago

I have my user set : USER I mount in the container a folder from my disk : -v /home/USER:/mnt/user/share/SFTP My folder /mnt/user/share is also accessed locally by Samba

When I start the emberstack/docker-sftp container, it is changing the permissions of my folder /mnt/user/share/SFTP to 711 with owner root:root so it is not accessible anymore through Samba.

How can I force which user the container is running as? (so I can set it to be my Samba user) or How can I set the permissions to remain unchanged or force them to 777 or 755?

winromulus commented 2 years ago

@Memes11 that's a chroot limitation (root has to own the folders and have very limited permissions) otherwise sshd will not start (not a limitation of this project). You must tinker with the CHROOT settings if you need to get this working. Unfortunately the setup is quite complex and I cannot assist on this.