How to limit users in proftpd
Hello,I would like to limit the number of users connecting to my server via ftp.
Can someone please help me out...
Have these ftp users:: user1, user2, user3
Limit number of connections from all users except one user, to 1.
ie, only 1 connection should be possible at a time for user1 <- (case 1)
and
only 1 connection should be possible at a time foruser2
and
user3 should be able to make more than 1 connection at a time <-(case 2)
Version : proftpd-1.2.10
I tried MaxClientsPerUser for case1, but it seems only 1 user can ftp to the server at a time.
My /etc/proftpd.conf is given below.
Someone please help me out... Thanx in advance.
~~~~~~~~~~~~~~~~~~~~~~
#
# To have more informations about Proftpd configuration
#
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "ProFTPD"
ServerType inetd
DefaultServer on
<Global>
DefaultRoot ~ psacln
AllowOverwrite on
</Global>
DefaultTransferMode binary
UseFtpUsers on
<Global>
AllowStoreRestart on
AllowForeignAddress on
</Global>
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
#Following part of this config file were generate by PSA automatically
#Any changes in this part will be overwritten by next manipulation
#with Anonymous FTP feature in PSA control panel.
#Include directive should point to place where FTP Virtual Hosts configurations
#preserved
ScoreboardFile /var/run/proftpd/scoreboard
# Primary log file mest be outside of system logrotate province
TransferLog /usr/local/psa/var/log/xferlog
#Change default group for new files and directories in vhosts dir to psacln
<Directory /home/httpd/vhosts>
GroupOwner psacln
</Directory>
Include /etc/proftpd.include