Linux – How to deny upload in proftpd

ftplinuxproftpd

I have the directory: /home/ftp/download.

I would like to allow only downloading from this directory i proftpd.

I used the following config but it doesn't work:

<Directory /home/ftp/download/>
   <Limit STOR STOU>
       DenyAll
   </Limit>    
</Directory>

STOR = (Transfer a file from the client to the server)

Any idea?

Best Answer

Assuming your other config and file permissions are correctly mapped, this should allow to download, but no upload.

Directory /home/ftp/download/>
    <Limit READ>
       AllowAll
   </Limit>    
   <Limit STOR STOU>
       DenyAll
   </Limit>    
</Directory>
Related Topic