Submitted by aitte on Tue, 02/26/2013 - 16:30
When deleting a website or a user on a site, they still remain in /etc/webmin/mailboxes/maildircache/
Example:
-rw-r--r-- 1 508 example 0 Feb 13 23:39 _home_example_homes_someguy_Maildir_.Junk
May seem small until you realize that this is the last remnant of the deleted user and is the reason that deleted users still show up under "Webmin: Disk Quotas"! Get rid of their orphan files there, and voila - no more "User #508" in the Disk Quotas section!
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Tue, 02/26/2013 - 16:38 Comment #1
Thanks for pointing this out - this will be fixed in the 4.00 Virtualmin release.
Submitted by aitte on Tue, 02/26/2013 - 17:28 Comment #2
Excellent. Also laughed when I saw the "4.00". Yeah, there certainly has been enough fixes recently to warrant a version bump, hehe! ;)
Submitted by aitte on Tue, 02/26/2013 - 17:40 Comment #3
A small update, after I checked on a production system (not dev system) where things had been in use for a bit longer:
Use "find / -uid 616" to find all orphaned files for user 616 (as an example).
I discovered that there are other orphaned files when deleting users.
Mainly: /tmp
And of course: /var/log/virtualmin/[domain].gz (which I already reported earlier and which you already fixed: https://www.virtualmin.com/node/25460)
And finally: /var/spool/mail:
After cleaning up these additional locations, even my production systems got rid of all orphan users from Disk Quotas. :)
Submitted by aitte on Tue, 02/26/2013 - 17:41 Comment #4
Submitted by JamieCameron on Tue, 02/26/2013 - 18:04 Comment #5
Thanks - I will include deletion of those files in /tmp in the next release.
The next release will be 3.99, but we have branched that already. So this specific fix will go into 4.00.
Submitted by aitte on Tue, 02/26/2013 - 18:13 Comment #6
Ahh got it. Excellent. :)
Submitted by Issues on Tue, 03/12/2013 - 19:16 Comment #7
Automatically closed -- issue fixed for 2 weeks with no activity.