Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've noticed that when I use userdel to remove users, they aren't removed from the quota table when I run repquota. Instead, their name is replaced by their UID (I think) such as "#10020." If I recreate a user with the same name as the one I deleted, he assumes those old quota settings. I'm looking for a way to remove a user's quota's, something equivalent to setquota hopefully. Thank you!
I realize this thread and reply are dated, but since the solution wasn't posted, I thought I would add it for future readers:
You end up with #<UID> entries when you delete a user but the UID still owns files on the filesystem where quota is enabled. Run a find for the offending UID in the filesystem that you are seeing this entry for and either remove the files, or chown them to an existing user.
i.e.
find /home -user 10200
Once you do that, the entries will automatically be removed from your repquota output.
Welcome and thanks for sharing. I was looking for a solution to this for some time too. Unfortunately removing all files of the user doesn’t seem to work for me:
Code:
# repquota -av
*** Report for user quotas on device /dev/sda6
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
...
#15151 -- 0 10000 10000 0 10000 10000
And a find for this userid doesn’t return anything. Must anything be done in addition?
My usual procedure is to create a dummy account, remove the quota entry and the just created user too.
Well, now I got it working – being it edquota or setquota.
I struggled in the past what argument to specify for the user, hence I tried "#15151" including the quotation marks which throws an error – giving only the number does it though.
Maybe it wasn’t mentioned in the man page before, or I checked only the explanation of the -u option (where it’s still not mentioned). I don’t recall.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.