SFTP restrict upload file only

kwlol used Ask the Experts™
I have setup a sftp server using SuSe Linux, and created some accounts for sftp only.  How can I set in the server to restrict the user can only upload files, but not to download any files from the server?

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software Engineer
Distinguished Expert 2018
the best way is to move the files to another location after upload.
incron may be your friend in this.
Distinguished Expert 2017
The sftp is a component of OpenSSH.
Disabling world/group readable from the permissions might prevent the download of files not owned by the user when dealing with transferring any (*) files in the directory.

I.e chmod 733 is a write only for group/world and would be permission set restrict .. No listing of contents...

If two separate users try to transfer a file identically name could run into issues where obe overwrites the other...

Ftps is much more manageable

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial