Package: quota Version: 3.14-7 Severity: normal
I found (and fixed at least on my box) two problems in two Perl scripts shipped with quota. I store my user info, including quotas, in LDAP, using the quota.schema included in the package. When I tried to use applySystemQuotas.pl (in /usr/share/quota/ldap/) to actually set those quotas, it seemed to freeze (the shell command, not the system). What I found out with ps is that it invoked nano (my $EDITOR) to make temp aquota.user file. Killing the script left the console broken (somehow like when you cat a binary). Killing nano left quotas not applied. I found that applySystemQuotas.pl tries to use /usr/sbin/edquota_editor as $equota_editor; however this file doesn't exist. This second perl script is located in /usr/share/quota/ldap/. Here is how I fixed applySystemQuotas.pl : 17:43 [EMAIL PROTECTED] ~/ldap-quota# diff applySystemQuotas.pl /usr/share/quota/ldap/applySystemQuotas.pl 27c27 < my $edquota_editor = '/usr/share/quota/ldap/edquota_editor'; --- > my $edquota_editor = '/usr/sbin/edquota_editor'; 53d52 < my $visual = $ENV{'VISUAL'} if $ENV{'VISUAL'}; 55d53 < $ENV{'VISUAL'} = $edquota_editor; 79d76 < $ENV{'VISUAL'} = $visual if $visual; I added the VISUALs lines because man edquota says it calls $EDITOR or $VISUAL so just to be sure... The second problem is about /usr/share/quota/ldap/edquota_editor. I am a real beginner in Perl, but it seems this script uses outdated declarations. Anyhow it fails so there is a problem :) This is what I had to do to make it run : 17:53 [EMAIL PROTECTED] ~/ldap-quota# diff edquota_editor /usr/share/quota/ldap/edquota_editor 13c13 < my $qdata = join '', (@_=<FILE>); --- > $qdata = join '', (@_=<FILE>); 21,25c21 < # local($rv, $line, @line, $i); < my $rv; < my $line; < my @line; < my $i; --- > local($rv, $line, @line, $i); Again, I am no serious dev. nor Debian Guru so I don't expect thoses fixes to be correct. But I certainly can tell you that after this, my LDAP quotas get correctly applied :) Also, I don't use setSystemQuotas.pl so there might be similar problems with it, but I didn't check. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.20-suff (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages quota depends on: ii debconf 1.5.13 Debian configuration management sy ii e2fslibs 1.39+1.40-WIP-2006.11.14+dfsg-2 ext2 filesystem libraries ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libcomer 1.39+1.40-WIP-2006.11.14+dfsg-2 common error description library ii libldap2 2.1.30-13.4 OpenLDAP libraries ii libssl0. 0.9.8e-4 SSL shared libraries ii libwrap0 7.6.dbs-13 Wietse Venema's TCP wrappers libra ii lsb-base 3.1-23.1 Linux Standard Base 3.1 init scrip quota recommends no packages. -- debconf information: quota/mailfrom: quota/signature: quota/subject: * quota/run_warnquota: false quota/group_message: quota/cc: quota/supportemail: quota/supportphone: quota/cc_before: quota/group_signature: quota/message: quota/rquota_setquota: -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]