How do I enable write access for an sFTP only user under Ubuntu?
- by Jon Cage
I'm running Ubuntu 12.04 and am trying to configure a user to allow chroot'd sFTP connections to another section of the filesystem.
I've added the following to my /etc/ssh/sshd_config file:
Match Group mygroup
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
ChrootDirectory /home/%u
I've set their home directory so that it's owned by root but has their group.
I've created a mount --bind from /home/myuser/transfers to /my/filesystem which appears to be navigable.
The problem I'm having is that I'm not able to write to any part of the filesystem which makes this pretty useless as an FTP server.
What am I missing? What can I check?