Hi! I've installed net-ftp/pure-ftpd-1.0.29. But there seems to be a problem. The whole ftp server works fine. But the userlimit seems to be ignored. Pegasus / # cat /etc/conf.d/pure-ftpd |grep MAX_CONN MAX_CONN="-c 100" MAX_CONN_IP="-C 10" But if I connect now, the server reports only: [R] 220-Sie sind Benutzer 1 von 5 erlaubten. (This means in englisch, you are number 1 of 5 allowed) It doesn't matther which setting i use. It seems like it would be hardcoded. Pegasus / # emerge --info Portage 2.1.8.3 (default/linux/x86/10.0/server, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo i586) ================================================================= System uname: Linux-2.6.34-gentoo-i586-Geode-TM-_Integrated_Processor_by_AMD_PCS-with-gentoo-2.0.1 Timestamp of tree: Sat, 17 Jul 2010 19:45:04 +0000 distcc 3.1 i586-pc-linux-gnu [enabled] ccache version 2.4 [enabled] app-shells/bash: 4.1_p7 dev-lang/python: 2.6.5-r2, 3.1.2-r3 dev-util/ccache: 2.4-r8 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.65-r1 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 virtual/os-headers: 2.6.34 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i586-pc-linux-gnu" CFLAGS="-march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -mfpmath=387" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -mfpmath=387 -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="" FEATURES="assume-digests ccache distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo/" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_COMPRESS="gzip" PORTAGE_COMPRESS_FLAGS="-f9" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="bzip2 cracklib iconv idn ipv6 ncurses nls nptl pam readline slang ssl symlink tcpd threads unicode x86 xml zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="*" APACHE2_MODULES="alias auth_basic authn_file authz_host authz_user autoindex cache cgi deflate dir disk_cache filter info log_config logio mime mime_magic mem_cache rewrite status unique_id vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="hd44780" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="amd" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
I cannot reproduce this behaviour. Can you please attach your /etc/conf.d/pure-ftpd file to this bug?
Created attachment 239383 [details] /etc/conf.d/pure-ftpd (In reply to comment #1) > I cannot reproduce this behaviour. Can you please attach your > > /etc/conf.d/pure-ftpd > > file to this bug? > Sure, here we go.
This is caused by the following setting from your config: -p 13380:13389 This permits pure-ftpd to only use _ten_ ports for clients. As each connection requires two ports you can only have five clients at the same time. This is also described in the man page for the -p switch: 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.