Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pure-ftpd virtual users problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
stofferthebest
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2003
Posts: 114
Location: Denmark

PostPosted: Fri Apr 09, 2004 5:32 pm    Post subject: pure-ftpd virtual users problem Reply with quote

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:::::


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
Back to top
View user's profile Send private message
Slurp53
Apprentice
Apprentice


Joined: 14 Jun 2002
Posts: 255
Location: Iowa

PostPosted: Fri Apr 09, 2004 8:04 pm    Post subject: Reply with quote

Post the output of
Code:
pure-pw show user-here


:) :)
_________________
"Welcome to the Pleasuredome" -- Frankie Goes to Hollywood
Back to top
View user's profile Send private message
stofferthebest
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2003
Posts: 114
Location: Denmark

PostPosted: Sat Apr 10, 2004 9:22 am    Post subject: Reply with quote

her is the 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)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum