I created a new user clientespc under the new group sftpclientes. I want that user to have only access (read/write) to var/pages/example.com/web/uploads. However I can't do that. I guess that's because my var/pages directory is owned by the www-data user. But I already tried to put clientespc under the www-data group. But it also didn't work. I am only able to set the useruploads/files as clientespc's root dir.

My current configuration is:

root dir:



Match Group sftpclientes
ForceCommand internal-sftp
PasswordAuthentication yes
AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no
ChrootDirectory /useruploads

passwd for that user:


But that's not what I want. What I want is to set the var/pages/example.com/web/uploads as the ChrootDirectory of the clientespc user, and grant it access only to that folder. How Can I do that?


You must log in to answer this question.

Browse other questions tagged .