I have just set a pure-ftpd up, with virtual users, and
first I think it works, but when I login, and try to
test my download limit at 1mb work, it don't, I was
able to download 1gb if I will
Here is my /etc/conf.d/pure-ftpd
Code:
# Config file for /etc/init.d/pure-ftpd
##Comment variables out to disable its features, or
change the values in it... ##
## This variable must be uncommented in order for the
server to start ##
IS_CONFIGURED="yes"
## FTP Server,Port (separated by comma) ##
## If you prefer host names over IP addresses, it's
your choice :
## SERVER="-S ftp.rtchat.com,21"
## IPv6 addresses are supported.
SERVER="-S 192.168.1.6,21"
## Number of simultaneous connections in total, and per
ip ##
MAX_CONN="-c 30"
MAX_CONN_IP="-C 10"
## Start daemonized in background ##
DAEMON="-B"
## Don't allow uploads if the partition is more full
then this var ##
DISK_FULL="-k 100%"
## If your FTP server is behind a NAT box, uncomment
this ##
#USE_NAT="-N"
## Authentication (others are 'pam', ...)##
## Further infos in the README file.
AUTH="-l puredb:/etc/pureftpd.pdb"
## Change the maximum idle time. (in minutes. default 15)
#TIMEOUT="-I <timeout>'"
## Use that facility for syslog logging. It defaults to
'ftp'
## Logging can be disabled with '-f none' .
#LOG="-f facility"
## Misc. Others ##
MISC_OTHER="-A -x -j -R -E"
#
# Use these inside $MISC_OTHER
# More can be found on
"http://pureftpd.sourceforge.net/README"
#
# -A [ chroot() everyone, but root ]
# -e [ Only allow anonymous users ]
# -E [ Only allow authenticated users. Anonymous logins
are prohibited. ]
# -i [ Disallow upload for anonymous users, whatever
directory perms are ]
# -j [ If the home directory of a user doesn't exist,
auto-create it ]
# -M [ Allow anonymous users to create directories. ]
# -R [ Disallow users (even non-anonymous ones) usage
of the CHMOD command ]
# -x [ Authenticated users can read/write files
beginning with a dot ('.')
# Anonymous users can't, for security reasons ]
# -X [ Users can't write/read files and directories
starting with a dot ('.') ]
# -D [ List files beginning with a dot ('.') even when
the client doesn't
# append the '-a' option to the list command. A
workaround for badly
# configured FTP clients. ]
# -G [ Disallow renaming. ]
# -d [ Send various debugging messages to the syslog.
ONLY for DEBUG ]
# -F <fortune file> [ Display a fortune cookie on
login. Check the README file ]
# -H [ By default, fully-qualified host names are
logged. The '-H' flag avoids host names resolution. ]
and here is my /etc/pureftpd.passwd
Code:
stoffer:$1$YksbqLn0$qVTpF.PgLF3UdbovgEukg.:1002:407::/var/ftp/download/./:::::::1048576:::::
and here is what pure-pw show user-name output:
Code:
Login : stoffer
Password : $1$YksbqLn0$qVTpF.PgLF3UdbovgEukg.
UID : 1002 (ftpuser)
GID : 407 (ftpgroup)
Directory : /var/ftp/download/./
Full name :
Download bandwidth : 0 Kb (unlimited)
Upload bandwidth : 0 Kb (unlimited)
Max files : 0 (unlimited)
Max size : 1 Mb (enabled)
Ratio : 0:0 (unlimited:unlimited)
Allowed local IPs :
Denied local IPs :
Allowed client IPs :
Denied client IPs :
Time restrictions : 0000-0000 (unlimited)
Max sim sessions : 0 (unlimited)
every time I made change to the user, I run pure-pw
mkdb, and if I change the home directorie, it works,
the directorie is change, but if I set a download limit
it has no effekt
greetings
stofferthebest