Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've been looking for a way to have specific users who have access my FTP to have read-only permission on particular directories. I came across some articles on creating .ftpaccess files (which I've read are similar to .htaccess files) to create customized configurations for specific directories and sub-directories.

After reading everything I could find about .ftpaccess files through Google and attempting to create said files I've had no luck.

Does anyone know the syntax that is needed to get these files to work? And is there a particular setting that I need to have enabled to enable these files? I've looked through the conf files but found nothing.

share|improve this question

1 Answer 1

AFAIK, Pure-FTPd doesn't support per directory access control. .ftpaccess belongs to ProFTPD.

You probably want to switch to ProFTPD with something like this:

<Directory /path/to/particular/directory>
    <Limit CWD PWD DIRS READ>
        AllowUser specific_user
    </Limit>

    <Limit ALL>
        DenyUser specific_user
    </Limit>
</Directory>
share|improve this answer

Your Answer

 
discard

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.