SFTP chroot: Writable root

Thomas Güttler guettliml at thomas-guettler.de
Fri Jan 5 03:14:46 AEDT 2018


(this is the third try. In the previous mails the body was empty)


Hi,

I set up a chroot sftp server by following this guide:

   https://wiki.archlinux.org/index.php/SFTP_chroot


Things work well, with one exception:


The root directory is not writable.

The above docs give a hint how to work around this.

But this is just a work-around.

In my context I need a writable (ch)root directory.

Is there a way to get both?

  - chroot

  - writable root



Currently it does not work

===> sftp mysftpuser at remote-host: <<< $'put foo.txt'
Connected to remote-host.
Changing to: /
sftp> put foo.txt
Uploading foo.txt to /foo.txt
remote open("/foo.txt"): Permission denied


Here the permissions:

remote-host:~ # ls -ld /home/mysftp/
drwxr-xr-x 2 root root 4096 Dez 20 14:17 /home/mysftp/


Regards,

   Thomas





-- 
Thomas Guettler http://www.thomas-guettler.de/
I am looking for feedback: https://github.com/guettli/programming-guidelines



More information about the openssh-unix-dev mailing list