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

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.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.