Skip to content

Conversation

@l15k4
Copy link

@l15k4 l15k4 commented Nov 27, 2019

This helps me starting sftp server that can be used right away. Since atmoz/sftp does not allow a user to write to the "base" ftp folder, it is not easy to deploy sftp server that can be written into without any action... I tested it both with :

  • dir: "" which resolves into sftp:test::: in /etc/sftp/users.conf which seems to be valid and working
  • dir: "uploads" which results in creation of that dir and allows the user to write to it

@fjbotto
Copy link

fjbotto commented Jun 3, 2021

After so many years and this still here...

I had the same issue with writing permissions:

PermissionError:` [Errno 13] Permission denied

And after this changes solved my problem.
Now if I access to the bash of the pod I can see:

bash-4.4# ls -la /home/sftpuser/uploads
total 12
drwxr-xr-x    2 sftpuser users         4096 Jun  3 15:19 .
drwxr-xr-x    3 root     root          4096 Jun  3 15:16 ..
-rw-r--r--    1 sftpuser users            9 Jun  3 15:19 test.txt

This changes should be merged.
Thanks @l15k4 !

@sj14
Copy link
Contributor

sj14 commented May 30, 2022

@flyingklop @hsychla @KilianDargel maybe one of you could have a look? I came across the same issue.

Edit: created a new chart which also fixed this: https://github.com/sj14/helm-charts/tree/main/charts/sftp-server

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants