AsavarTzeth / docker-sftp

This project isn't being actively maintained. That also means it is not supported. It is provided for archival and academic purposes only and should never be used in a production environment.
BSD 2-Clause "Simplified" License
9 stars 10 forks source link

sftp permission denied #3

Closed rbtrary closed 9 years ago

rbtrary commented 9 years ago

Not understanding why this permission denied issue with default /sftp1 user please?

$ sftp -P 2222 sftp1@localhost

Welcome to your new sftp container!

To get the passwords, on the docker host system run this: docker cp some-container:/sftp_pass .

For more information, see the official README.md Link: http://registry.hub.docker.com/u/asavartzeth/sftp/

Link: http://github.com/AsavarTzeth/docker-sftp/

sftp1@localhost's password: Connected to localhost. sftp> put test.txt Uploading test.txt to /sftp1/test.txt remote open("/sftp1/test.txt"): Permission denied sftp>

rbtrary commented 9 years ago

Fixed issue seemed to be permission at higher level.

AsavarTzeth commented 9 years ago

In case of anyone else asking. Any permission errors you have has nothing to do with the container. It is the responsibility of the admin to use volumes to link the container to wherever you want to upload/download files (be that host, another container or machine). You then have to make sure users/groups are mapped to the same uid/gid.

In the end it all depends on your setup.

What I have failed to do though, was finishing and pushing my improved (example based) user documentation to master. This might have prevented some confusion on this matter.

AsavarTzeth commented 9 years ago

Shorter summary: It is never wise to store the data inside your container, since that would be lost on upgrade. Because of this, I do not support this. If you do store data properly (externaly), then really I cannot assume anything, right? It is then up to you.