Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Debian Etch

Discussion in 'HOWTO-Related Questions' started by Spreech, Jul 28, 2007.

  1. Spreech

    Spreech New Member

    Hi @ all,

    first of all I want to say a big THANKS to the author of the HOW TO!
    It is really great!

    I have on question.

    I have done the following instructions:

    groupadd -g 2001 ftpgroup
    useradd -u 2001 -s /bin/false -d /bin/null -c "proftpd user" -g ftpgroup ftpuser

    And I have also added the testuser into the database.

    But now I mentioned that it is possible to login for users who are not in the group 2001, too.

    Is that normal?
    If this is normal, how can I get it, that not every user can login via ftp?

    Thanks a lot in advance for your help.

    Manuel
     
  2. falko

    falko Super Moderator ISPConfig Developer

    This setup is about virtual users, not system users. Virtual users aren't members of any group.
     
  3. Spreech

    Spreech New Member

    Thanks for your reply Falko.

    Do you know if there is any option to disable login for some users?

    My idea is to grant only members of the mysql database access to ftp.

    Manuel
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Yes, give your system users a shell that is not listed in /etc/shells (e.g. /bin/false).
     
  5. Spreech

    Spreech New Member

    thanks for your reply falko.

    I found another solution:

    you can add the following line into the proftpd.conf file:

    <Limit LOGIN>

    AllowUser ftpuser

    AllowGroup ftpgroup

    DenyAll

    </Limit>

    Regards

    Manuel
     

Share This Page