You are not logged in.

#1 2010-01-29 17:23:40

tjach
Member
Registered: 2007-09-17
Posts: 22

[solved] Userdel and quota

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

#2 2010-01-29 17:45:27

wriggary
Member
Registered: 2009-06-30
Posts: 65

Re: [solved] Userdel and quota

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

#3 2010-01-29 18:05:19

tjach
Member
Registered: 2007-09-17
Posts: 22

Re: [solved] Userdel and quota

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  2000

Offline

#4 2010-01-29 18:29:51

wriggary
Member
Registered: 2009-06-30
Posts: 65

Re: [solved] Userdel and quota

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

#5 2010-02-20 19:03:56

wriggary
Member
Registered: 2009-06-30
Posts: 65

Re: [solved] Userdel and quota

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

#6 2010-03-13 11:59:00

tjach
Member
Registered: 2007-09-17
Posts: 22

Re: [solved] Userdel and quota

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

Board footer

Powered by FluxBB