|
From: Jamie C. <jca...@we...> - 2006-07-29 18:54:34
|
On 25/Jul/2006 23:42 Murray Trainer wrote .. > On Tue, 2006-07-25 at 09:49 -0700, Jamie Cameron wrote: > > On 25/Jul/2006 01:50 Murray Trainer wrote .. > > > Hi Jamie, > > > > > > When I add a user with a totally numeric userid like 12345678 the quotas > > > appear normal via repquota -s /home but when I look in the Filesystem > > > Quotas module I get two entries for the user, ie 12345678 and #12345678. > > > The first one displays the correct disk usage and the second shows > > > none. > > > > Adding users with names like that is a bad idea, as the quota commands > will > > get confused between UIDs and usernames. For example, if you run : > > > > edquota -t 12345678 > > > > it may set the quotas for the user named 12345678, or with UID 12345678. > > Because Webmin just calls thse commands, it cannot handle this situation > > as you'd expect. > > Edquota should probably be fixed but as a workaround could you run > edquota with the numeric id of the user as the argument instead of the > name to avoid this problem? That won't work though .. I checked into this further, and found that if you run edquota with a numeric username, it will always assume this this is a UID, even if no user with that ID exists. - Jamie |