You are not logged in.
Hello,
maybe it's a stupid question, but after few hours of google'ing I haven't found any solution.
I've implemented quotas in my filesystem (ext4). Everything works how it should, but whenever I delete user who had any entries in quotatab, those entries stay there (but username changes to something like #UID).
Steps to reproduce:
1. Implement quotas on filesysytem.
2. edquota -u <user> and set any values.
3. userdel -r <user> # Delete also user files. Confirmed by find /home -xdev -user <user> that no user files exist.
4. Just in case do quotaoff -a; quotacheck -avmu; quotaon -a
5. repquota -a # shows the entry for deleted user (without username, just UID)
Is there a way to delete those entries?
Last edited by tjach (2010-03-13 11:59:18)
Offline
I see that you are searching by a username with the find command. If you search by the UID does it still find no files?
Offline
That's correct:
# find /home -xdev -uid 1002
showing no files.
In fact repquota -av is also showing no files:
Block limits File limits
User used soft hard grace soft hard grace
----------------------------------------------------------------------
#1002 -- 0 0 1000000 0 1000 2000Offline
Strange. Sorry, I have no personal experience with quota-tools, only with userdel forgetting to remove a few files, and leaving them as UID stragglers.
You could try to leave a support request on their sourceforge page: http://sourceforge.net/tracker/?atid=218136&group_id=18136&func=browse
Offline
I know this is an old thread, but I found something interesting in /etc/login.defs:
#
# If defined, this command is run when removing a user.
# It should remove any at/cron/print jobs etc. owned by
# the user to be removed (passed as the first argument).
#
#USERDEL_CMD /usr/sbin/userdel_local
Its commented out, so inactive. Does the userdel command remove all at/cron/print jobs nowadays? or is an external command necessary?
Offline
Thank you for this. But actually problem solved itself. I don't know which caused it: maybe some updates or something. But now everything works how it should.
Thanks for your time.
Offline