0

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?

Castaglia
  • 3,349
  • 3
  • 21
  • 42
Oualid
  • 163
  • 3
  • 6

2 Answers2

0

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>
Danila Ladner
  • 5,331
  • 22
  • 31
0

I run sftp and not ftp.

sftp runs by openssh.

ftp runs by proftpd.

The changes didn't take effect because I run sftp and not ftp in the ftp client.

Oualid
  • 163
  • 3
  • 6