[horde] Fwd: Re: Horde Webmail Groupware - Quotas

Jan Schneider jan at horde.org
Fri Nov 17 14:07:14 PST 2006


Zitat von johns at bsfc.ac.uk:

>> 'quota_path' => 'sudo /usr/bin/quota' because it looks like the sudo
>> isnt getting executed and that would cause the command to fail because
>> of permissions.
>
> it does.
>
>>
>> try executing from ssh or similar the command that is showing up from
>> your debugging stuff... and see if it returns a quota line.  If it
>> doesn't drop off the | grep line and see if it still fails
>
> Ok here is where it gets interesting.
>
> 1) i ran (sudo /usr/bin/quota -u mm | /bin/grep /dev/VolGroup00/LogVol01)
> it never done nothing just returned to the '#'
>
> 2) I ran; (sudo /usr/bin/quota -u mm /dev/VolGroup00/LogVol01)
> and it outputted;
>
> [root at mailtemp config]# Disk quotas for user mm (uid 645):
>      Filesystem  blocks   quota   limit   grace   files   quota    
> limit   grace
> /dev/mapper/VolGroup00-LogVol01
>                     132  102400  153600              29       0       0
> quota: User /dev/VolGroup00/LogVol01 doesn't exist.
>
> 3) I ran; (sudo /usr/bin/quota -u mm)
> and it outputted;
>
> [root at mailtemp config]# sudo /usr/bin/quota -u mm
> Disk quotas for user mm (uid 645):
>      Filesystem  blocks   quota   limit   grace   files   quota    
> limit   grace
> /dev/mapper/VolGroup00-LogVol01
>                     132  102400  153600              29       0       0
>
> its strange its showing the volume as
>
> /dev/mapper/VolGroup00-LogVol01
> instead of
> /dev/VolGroup00/LogVol01 (which is what it is listed in /etc/fstab.
>
> 4) then i ran (sudo /usr/bin/quota -u mm /dev/mapper/VolGroup00-LogVol01)
> and it outputted;
>
> [root at mailtemp config]# sudo /usr/bin/quota -u mm /dev/mapper/VolGroup00-
> LogVol01
> Disk quotas for user mm (uid 645):
>      Filesystem  blocks   quota   limit   grace   files   quota    
> limit   grace
> /dev/mapper/VolGroup00-LogVol01
>                     132  102400  153600              29       0       0
> quota: User /dev/mapper/VolGroup00-LogVol01 doesn't exist.
>
> Its just plain wierd.

No, it isn't. You missed the grep:

sudo /usr/bin/quota -u mm | grep /dev/mapper/VolGroup00-LogVol01

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list