[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Quotas - repquota reports some users by ID, which do not seem to exist

On Thu, May 25, 2017 at 4:26 PM, Kent West <westk@acu.edu> wrote:
# repquota -sC /home

hollandj  --    227M      0K      0K           3258     0     0       
#1013     --    112K  48829M  49805M             13     0     0       
#1015     --    779M  48829M  49805M          19049     0     0       
cds04a    --  41424M      0K      0K          32221     0     0       
mxr02d    --  20966M      0K      0K          59389     0     0       

# ls -lahn /home

reports no users with 1013 or 1015 IDs

# id -un 1013
id: 1013: no such user

# cat /etc/passwd | grep 1013

# cat /etc/group | grep 1013

Where are these ID'd users coming from?


It took me a while to figure out....

Once I realized that the way quotas work is not to limit the aggregate size of the files in a user's profile directory, but to limit the aggregate size of all files belonging to that user within the relevant filesystem (partition), I realized that the files owned by these IDs could be anywhere in the /home filesystem.

So a file owned by "joe" that is is the profile directory "mary" rather than in Joe's own profile directory named "joe", will still be counted against Joe. Duh. Pretty obvious, once you think about it.

A quick "find. -uid 1013 -exec echo {} \;" from the /home directory by root, and boom! There they are.

The UIDs are leftovers from an older system.


Kent West                    <")))><
Westing Peacefully - http://kentwest.blogspot.com

Reply to: