Proftpd with user aliases and directory limitations not being applied

Discussion in 'Linux Networking' started by Mike, Nov 9, 2004.

  1. Mike

    Mike Guest

    Hello,

    I've been using Proftpd (although it seems to be slowly dying) and
    would like to setup multi-user access to a website project. The idea
    is that everyone can log into the base and make changes, but some
    specific directories are to be reserved for specific users.

    Everyone on the system currently has a linux uname/pw so what I'm
    doing is aliasing them to the wwwuser which is running apache. Each
    having their own username/password to ftp into the site is working
    fine so far.

    The part that's not working is the directory limiting. I can deny ALL
    users no problem, but when I try to specify individual users it either
    opens up completely or closes it off completely. No middle ground.
    I've tried every combination in the LIMIT context I can think of.
    Here's the proftpd.conf excerpt.


    <Anonymous /home/website/>
    User wwwuser
    Group wwwuser

    MaxClients 20
    AnonRequirePassword on
    DefaultChdir /home/website/www

    #Trying to run user aliases
    AuthUsingAlias on
    RequireValidShell off

    #User Aliases
    UserAlias jack wwwuser
    UserAlias jill wwwuser
    UserAlias henry wwwuser
    UserAlias frank wwwuser

    <Directory /home/website/www/catalog/content>
    <Limit WRITE READ DIRS>
    DenyALL
    AllowUser jack
    </Limit>
    </Directory>

    </Anonymous>

    If anyone has been able to do this, would love to know what I'm doing
    wrong.

    Mike
     
    Mike, Nov 9, 2004
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.