From: Obantec S. <su...@ob...> - 2004-11-03 08:45:20
|
----- Original Message ----- From: "Jamie Cameron" <jca...@we...> To: <web...@li...> Sent: Tuesday, November 02, 2004 10:07 PM Subject: Re: [webmin-l] Quota not showing all or correct quota's > On Tue, 2004-11-02 at 20:22, Obantec Support wrote: > > ----- Original Message ----- > > From: "Jamie Cameron" <jca...@we...> > > To: <web...@li...> > > Sent: Tuesday, November 02, 2004 6:25 AM > > Subject: Re: [webmin-l] Quota not showing all or correct quota's > > > > > > > On Tue, 2004-11-02 at 09:19, Obantec Support wrote: > > > > Hi > > > > > > > > webmin 1.160 > > > > > > > > I have 2 users under /home > > > > > > > > obantec_support > > > > obantec_sub1 > > > > > > > > Now with Module index set to show quota's under /home Sort users and > > groups > > > > by Blocks used > > > > it lists obantec_sub1 but not obantec_support. > > > > > > > > If i use the edit quota's for obantec_support it shows Unlimited but it > > > > should by 50MB > > > > if i use edit quota'a for obantec_sub1 it shows 50MB yet the main page > > which > > > > lists obantec_sub1 shows 20MB (the correct quota). > > > > > > > > Setting it to Sort by Name i get > > > > > > > > obantec_sub1 quota 50MB (this is obantec_support's correct quota) > > > > obantec_sub1 quota 20MB (this is obantec_sub1's correct quota) > > > > > > > > looks like pattern match has a problem?. > > > > > > Perhaps the username obantec_support is too long, and is being truncted > > > by the repquota command that Webmin reads output from. I would be > > > interested to see the output from the command > > > > > > repquota -u -v /home > > > > > > on your system .. > > > > > > - Jamie > > > > > <snip> > > > > Hi Jamie > > > > Hum first time in 5 years that a quota has gone over on a username like > > this! > > Yes usernames are truncated 10 letters then _-- (the _ is used to denote sub > > users or mail only accounts). > > > > So obantec_support reads as obantec_su-- as does obantec_sub1 obantec_su-- > > from repquota -u -v /home > > > > Out of interest the web interface software for the server has no issues > > seeing both names and quota's (Its similar to Cobalt servers). > > > > Webmin shows some usernames (long one's ok) but if the username is a bit > > long it lists same as previous but with the correct quota!. > > > > Example (all made up usernames but exact size as problem) > > > > toy-boat-fred 50MB > > toy-boat-freesales 20MB > > toy-boat-freetalk 10MB > > > > Webmin lists as > > > > toy-boat-fred 50MB > > toy-boat-fred 20MB > > toy-boat-fred 10MB > > > > Mark > > The problem here is that Webmin uses the repquota output to work out > what each user's quota is, and attempts to resolve truncated usernames > by searching /etc/passwd for users that start with whatever username > repquota displays. However, if two users are truncated to the same thing > (like obantec_su) then this will not work :-( > > The only solution is to upgrade the quota utility programs on your > system, as later versions of repquota do not truncate usernames like > this .. > > - Jamie > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > Thanks Jamie will look into upgrading. this explains why my later servers work. Mark |