Is it possible to configure an sftp user for uploading and editing but NOT downloading files?

Posted October 15, 2016 2.8k views
SecurityUbuntu 16.04

I know how to chroot (jail) a user to a folder, but now i need a user to be able to upload and edit but not download files (is this possible). I guess it does not make any sense right. Ha ha ha.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

This page includes a couple potential solutions for this problem. Once you’ve jailed the user to their own directory you can prevent file creation but allow editing and downloading by setting appropriate permissions as the root user.