Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Within my ftp tree there is a directory that I don't want to be accessible via anonymous.

I am able to hide the directory in question and all the files within the directory.

What I have not been able to do is prevent somebody from navigating to the directory.

So if somebody navigates to they wont see an 'incoming' directory. However, if they navigate to the page loads.

The files are hidden but this kind of nullifies the point of hiding the 'incoming' directory in the first place.

Any ideas would be much appreciated and if I've left anything out please me know.

Here are my configurations:

drwxr-xr-x  29 john     ftpgroup 4096 2012-04-17 22:22 incoming

<Anonymous /home/ftp/>
    User  ftp
    Group ftp
    UserAlias    anonymous ftp

    <Directory incoming/>
        HideGroup ftpgroup

        <Limit READ DIRS>
            IgnoreHidden on
share|improve this question

OK, so this worked for me.

I needed to add CWD to the 'Limit'

<Directory incoming/>
    HideGroup ftpgroup

    <Limit READ DIRS CWD>
        IgnoreHidden on
share|improve this answer

try following:

chmod o-r ~ftp/incoming

share|improve this answer
Thanks for the suggestion @alexus but anonymous can still navigate to the directory. – Depmadra Apr 20 '12 at 19:25
anonymous user won't see a directory listing so user wouldn't even know where to go unless user knows exactly the directory and then he can travel there. – alexus Apr 20 '12 at 19:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.