How do I enable write access for an sFTP only user under Ubuntu?
Posted
by
Jon Cage
on Super User
See other posts from Super User
or by Jon Cage
Published on 2013-06-27T01:08:14Z
Indexed on
2013/06/27
4:24 UTC
Read the original article
Hit count: 389
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?
© Super User or respective owner