emberstack / docker-sftp

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

[Question] Permission denied using default configuration #37

Closed fdo13100 closed 4 years ago

fdo13100 commented 4 years ago

Hi,

I'm trying to change default login/password using Helm. I use this values file :

**configuration: Users:

I can login but when I try to create a directory, I got : sftp> mkdir test Couldn't create directory: Permission denied

What stupid mistake did I do ?

Thanks

winromulus commented 4 years ago

If you're using the default configuration, make sure you're in the sftp directory. The default configuration sets all users chroot to /home//sftp. That means they have read/write only in /sftp A standard SFTP client follows the start path and goes into /sftp directly but I think you're in /home/user. If you want to confirm, after you connect, do a ls and if you see an sftp dir, that means your client did not respect the start dir command and you have to manually cd sftp. WinSCP/FileZilla/any other standard client will go into /sftp directly

fdo13100 commented 4 years ago

ok thx a lot !

Meghana-V commented 3 years ago

Hi, I am facing similar issue. I am unable to run cd sftp throws an error Couldn't stat remote file: No such file or directory. When i run pwd it gives / Please help me to create a directory.