Results 1 to 6 of 6
Thread: pure-ftpd help
-
10-24-2009, 01:49 AM #1Web Hosting Master
- Join Date
- Dec 2006
- Location
- Canada
- Posts
- 884
pure-ftpd help
Hello,
I am not 100% sure if i am going to be able to describe the problem, but i hope someone will get an idea what i am talking about.
I have pure-ftpd installed on my server.
In one of the folders in my public_html i have more then 10 000 files.
When i ftp to my username using FlashFXP i am unable to list more then 1998 files.
Does it have to do anything with passive ports range or ?
How can i fix the problem? If i need to enable passive ports, please tell me what port range should i use, and how should i enter it in /etc/sysconfig/iptables.
Please advise,
s-f-r-j█ HostingFields - Managed Web Hosting - sales@hostingfields.com
█ Affordable Shared Web Hosting, Semi Dedicated Servers & Dedicated Servers
█ https://www.hostingfields.com
-
10-24-2009, 02:22 AM #2Web Hosting Evangelist
- Join Date
- Nov 2003
- Location
- Marylebone, London, UK
- Posts
- 530
from the docs, you need to start with -L flag:
-L max files:max depth
Avoid denial-of-service attacks by limiting the number of dis-
played files in a 'ls' and the maximum depth of a recursive
'ls'. Defaults are 2000:5 (2000 files displayed for a single
'ls' and walk through 5 subdirectories max).
so for example: -L 10000:5
means 10,000 files, and dir depth of 5 levels
-
10-24-2009, 02:25 AM #3Web Hosting Master
- Join Date
- Jul 2009
- Posts
- 1,568
It has nothing to do with the iptables OR passive Ftp. The pure-ftp by default limit maximum number of # files to be displayed to 2000.
So edit your pureftp configuration file which is at /etc/pure-ftpd.conf and edit the value of the following directive as per your wish
LimitRecursion 2000 8
In the above example,
2000 is the number of files that are displayed within a directory
8 is the maximum number of directories it will travel through recursively.
You need to restart the ftp service once you make the changes.Last edited by madaboutlinux; 10-24-2009 at 02:29 AM.
| LinuxHostingSupport.net
| Server Setup | Security | Optimization | Troubleshooting | Server Migration
| Monthly and Task basis services.
| MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux
-
10-24-2009, 02:27 AM #4Disabled
- Join Date
- Apr 2009
- Posts
- 256
Go to the FTP configuration file ( in this case, /etc/pure-ftpd.conf )
Change the value for the variable 'LimitRecursion' to match your requirement.
-
10-24-2009, 02:28 AM #5Web Hosting Master
- Join Date
- Dec 2006
- Location
- Canada
- Posts
- 884
Yep, that worked
That was easy, next time i have to read more
Thank you all!
s-f-r-j█ HostingFields - Managed Web Hosting - sales@hostingfields.com
█ Affordable Shared Web Hosting, Semi Dedicated Servers & Dedicated Servers
█ https://www.hostingfields.com
-
10-24-2009, 02:32 AM #6Disabled
- Join Date
- Apr 2009
- Posts
- 256
Glad to hear that it worked. Cheers
Similar Threads
-
Pure-FTPD login not working -- /var/run/ftpd.sock?
By jaseeey in forum Hosting Security and TechnologyReplies: 1Last Post: 11-09-2008, 08:33 AM -
help pure ftpd
By shellskynet in forum Hosting Security and TechnologyReplies: 1Last Post: 03-23-2006, 03:49 PM -
pure-ftpd
By synx in forum Hosting Security and TechnologyReplies: 5Last Post: 12-19-2005, 07:36 AM -
pure-ftpd vs pro-ftpd ?
By N9ne in forum Hosting Software and Control PanelsReplies: 21Last Post: 03-09-2003, 07:42 PM