1

I installed a SFTP server with SSH. But the chroot directory must be owned by root, then the user can't write on it.

Is there any way to allow that user to write in its root directory?

Thanks in advance!

2

In the vsftpd conf file check for:

allow_writable_chroot=YES

LINK TO MY ANSWER:

vsftpd does not allow chrooted users write to directory

  • Despite 'sftp' in its name, vsftpd is not an SFTP server. – Shadur Jun 14 '16 at 7:50
0

Usually you create two folders (could be "in" and "out" or whatever you want) and allow access to those folders, that way the user can't write in / but can write in those folders.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.