LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-04-2011, 01:35 AM   #1
eteck
Member
 
Registered: Oct 2003
Location: In a Cave on Mars
Posts: 52

Rep: Reputation: 15
pure-ftpd - can't increase maximum allowed users


I running the command

Code:
/usr/sbin/pure-ftpd -l puredb:/etc/pure-ftpd/pureftpd.pdb -X -O clf:/var/log/pure-ftpd/transfer.log -A -u 1000 -p 40110:40115 -x -C 100 -P SOME.IP -8 UTF-8 -c 20 -E -B
But it still says my maxium allowed users are 3:

Code:
someone@somewhere:~$ ftp www
Connected to www.somewhere.com.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 3 allowed.
FYI: I'm using Ubuntu 10.04.2 LTS

Any ideas?

Last edited by eteck; 04-04-2011 at 01:43 AM.
 
Old 04-04-2011, 02:19 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

This is because you use -p to specify a range of ports. From pure-ftpd manpage:
Quote:
-p first:last
Use only ports in the range first to last inclusive for passive-mode downloads. This means that clients will not try to open connections to TCP ports outside the range first - last, which makes pure-ftpd more compatible with packet filters. Note that the maximum number of clients (specified with -c) is forced down to (last + 1 - first)/2 if it is greater, as the default is. (The syntax for the port range is, conveniently, the same as that of iptables).
In your case it's: (40115+1-40110)/2=3

Regards
 
Old 04-04-2011, 03:57 AM   #3
eteck
Member
 
Registered: Oct 2003
Location: In a Cave on Mars
Posts: 52

Original Poster
Rep: Reputation: 15
Updated my port range so it should get 25 users, based on your maths. But still didn't work.

Code:
/usr/sbin/pure-ftpd -l puredb:/etc/pure-ftpd/pureftpd.pdb -X -O clf:/var/log/pure-ftpd/transfer.log -A -u 1000 -p 40110:40159 -x -C 100 -P SOME.IP -8 UTF-8 -c 100 -E -B
Code:
someone@somewhere:~$ ftp www
Connected to www.somewhere.com.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 3 allowed.
Any other ideas?

Last edited by eteck; 04-04-2011 at 04:00 AM.
 
Old 04-04-2011, 04:24 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
It's not my maths. It's the way pure-ftpd is supposed to work when the number of clients (-c) is bigger that the number of available ports (-p)
Anyway, try to put -c before -p and see if works. Make sure you stop and the start the server again.
 
Old 04-04-2011, 04:33 AM   #5
eteck
Member
 
Registered: Oct 2003
Location: In a Cave on Mars
Posts: 52

Original Poster
Rep: Reputation: 15
Bingo! Seems the ubuntu /etc/pure-ftpd/ doesn't take that into account.
 
  


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
Jailing users with pure-ftpd old286 Linux - Newbie 6 06-17-2010 04:20 PM
I cannot use virtual users in pure-ftpd. kutlu Debian 0 01-05-2009 01:38 AM
What is the maximum number of groups and users allowed in Linux? dave247 Linux - General 2 09-23-2008 01:20 AM
pure-ftpd online users spotass Linux - Software 0 07-22-2004 11:33 AM
pure-ftpd virtual users problem stofferthebest Linux - Networking 0 04-12-2004 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:07 PM.

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