Bug#700632: ftpquota --files-download=0 is incorrect

Mathieu Malaterre malat at debian.org
Fri Feb 15 15:29:05 UTC 2013


Package: proftpd-basic
Version: 1.3.3a-6squeeze6
Severity: normal

As per documentation:
http://www.proftpd.org/docs/utils/ftpquota.html

...
  --Fd                 Specifies the limit of the number of files that may be
  --files-download     downloaded.  Defaults to -1 (unlimited).
...

However:

$ cd /tmp
$ sudo rm ftpquota.limittab
$ sudo ftpquota --create-table --type=limit
$ sudo ftpquota --add-record --type=limit --name=foobar --quota-type=user --files-download=1
$ sudo ftpquota --show-records --type=limit
-------------------------------------------
  Name: foobar
  Quota Type: User
  Per Session: False
  Limit Type: Hard
    Uploaded bytes: unlimited
    Downloaded bytes: unlimited
    Transferred bytes:  unlimited
    Uploaded files: unlimited
    Downloaded files: 1
    Transferred files:  unlimited


while:

$ sudo rm ftpquota.limittab
$ sudo ftpquota --create-table --type=limit
$ sudo ftpquota --add-record --type=limit --name=foobar --quota-type=user --files-download=0
$ sudo ftpquota --show-records --type=limit
-------------------------------------------
  Name: foobar
  Quota Type: User
  Per Session: False
  Limit Type: Hard
    Uploaded bytes: unlimited
    Downloaded bytes: unlimited
    Transferred bytes:  unlimited
    Uploaded files: unlimited
    Downloaded files: unlimited
    Transferred files:  unlimited


It does not seems possible to state: no download of any file possible !

Thanks


-- System Information:
Debian Release: 6.0.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (200, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-0.bpo.4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages proftpd-basic depends on:
ii  adduser               3.112+nmu2         add and remove users and groups
ii  debconf               1.5.36.1           Debian configuration management sy
ii  debianutils           3.4                Miscellaneous utilities specific t
ii  libacl1               2.2.49-4           Access control list shared library
ii  libattr1              1:2.4.44-2         Extended attribute shared library
ii  libc6                 2.11.3-4           Embedded GNU C Library: Shared lib
ii  libcap2               1:2.19-3           support for getting/setting POSIX.
ii  libncurses5           5.7+20100313-5     shared libraries for terminal hand
ii  libpam-runtime        1.1.1-6.1+squeeze1 Runtime support for the PAM librar
ii  libpam0g              1.1.1-6.1+squeeze1 Pluggable Authentication Modules l
ii  libssl0.9.8           0.9.8o-4squeeze13  SSL shared libraries
ii  libwrap0              7.6.q-19           Wietse Venema's TCP wrappers libra
ii  netbase               4.45               Basic TCP/IP networking system
ii  sed                   4.2.1-7            The GNU sed stream editor
ii  ucf                   3.0025+nmu1        Update Configuration File: preserv
ii  update-inetd          4.38+nmu1+squeeze1 inetd configuration file updater
ii  zlib1g                1:1.2.3.4.dfsg-3   compression library - runtime

proftpd-basic recommends no packages.

Versions of packages proftpd-basic suggests:
pn  openbsd-inetd | inet-s <none>            (no description available)
ii  openssl                0.9.8o-4squeeze13 Secure Socket Layer (SSL) binary a
pn  proftpd-doc            <none>            (no description available)
pn  proftpd-mod-ldap       <none>            (no description available)
pn  proftpd-mod-mysql      <none>            (no description available)
pn  proftpd-mod-odbc       <none>            (no description available)
pn  proftpd-mod-pgsql      <none>            (no description available)
pn  proftpd-mod-sqlite     <none>            (no description available)

-- debconf-show failed



More information about the Pkg-proftpd-maintainers mailing list