[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Bug: I thought this was fixed
- Subject: Re: [cobalt-users] Bug: I thought this was fixed
- From: David Sexton <david.sexton@xxxxxxxxxxxx>
- Date: Mon Jan 17 15:15:49 2000
Dan wrote:
>
> Undefined subroutine &main::repquota called at /usr/local/sbin/monitor line
> 255.
This comes about from manually playing with quotas (quotaed). I have
'fixed it in /usr/sbin/monitor by wedging the function
'getGoodSiteAdmins'.
The 'proper' way of fixing it would be to find out which user's quota
has been changed and then reset it using the Cobalt UI. If this is
inconenient (or you don't use the Cobalt UI anymore) try the following :
Two points of warning :-
DON'T DO THIS unless you are comfortable with PERL & UNIX.
DON'T DO THIS unless you are happy not just invalidating but
thoroughly smashing your software warranty....
sub getGoodSiteAdmins
# Args: vsite group
# Return value: list of vsite admins whose usage < soft
{
my ($group) = @_;
return grep {
# my ($usage,$soft,$hard) = repquota($_, 0);
my ($usage, $soft, $hard) = (10, 20, 30); # Wedge it fixed.
($usage < $soft);
} vsite_admin_list(vsite_get_bygroup($group));
}
This gets confused when the cobalt user database gets out of sync with
the actual quotas on disk. This fix will (I think) disable all of the
'user is close to or over quota' emails, but the actual quota will still
be enforced on disk.
Dave
--
David Sexton
Network Technician
Sapphire Technologies Ltd.
Tel: +44 (0) 1642 702100
Fax: +44 (0) 1642 702119
-----------------------------------------------
Any opinions expressed in this message are those of the individual and not necessarily the company. This message and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this message in error and that any use is strictly prohibited.
Sapphire Internet
http://www.sapphire.net