LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Proftpd - See directory, not files (https://www.linuxquestions.org/questions/linux-software-2/proftpd-see-directory-not-files-124738/)

Wynd 12-10-2003 07:41 PM

Proftpd - See directory, not files
 
On my FTP server, I have a folder called "upload". What I want is for people to be able to see that the folder is there, and to be able to upload stuff into it, but not see the files that are inside it. Is there a way to accomplish this? Currently, they can't see the upload folder. This is my proftpd.conf:
Code:

ServerName                        "ProFTPD Default Installation"
ServerType                        inetd
DefaultServer                        on
Port                                21
Umask                                022
MaxInstances                        30
User                                nobody
Group                                nogroup
DefaultRoot ~

<Directory />
  AllowOverwrite                on
</Directory>

<Anonymous ~ftp>
  RequireValidShell                no
  User                                ftp
  Group                                ftp
  UserAlias                        anonymous ftp
  MaxClients                        10
  DisplayLogin                        welcome.msg
  DisplayFirstChdir                .message

  <Limit WRITE>
    DenyAll
  </Limit>

  <Directory upload>
    <Limit LIST NLST>
      DenyAll
    </Limit>
    <Limit STOR>
      AllowAll
    </Limit>
  </Directory>

</Anonymous>


hw-tph 12-10-2003 08:11 PM

Did you try removing execute permissions on the upload dir for everyone but root? The executable bit, when set on dirs, controls whether you can list the dir or not.

Just an idea... :)

Håkan


All times are GMT -5. The time now is 08:02 PM.