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

October 15, 2016 319 views
Security Ubuntu 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.

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.

Have another answer? Share your knowledge.