LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-12-2004, 03:59 AM   #1
stofferthebest
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Rep: Reputation: 0
pure-ftpd virtual users problem


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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't enable virtual users on pure-ftpd G-Fox Linux - Networking 1 03-25-2010 04:51 PM
Can I use virtual users with pure-ftpd started from initd? G-Fox Linux - Software 0 06-03-2005 03:40 AM
pure-ftpd and virtual servers mozilla Linux - Networking 1 05-03-2005 06:35 AM
pure-ftpd mysql virtual groups augustmacbizzle Linux - Software 0 04-27-2005 01:09 PM
"./configure --with-virtualchroot" breaks virtual users in pure-ftpd icarus24 Linux - Networking 2 11-09-2003 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration