LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Need help with disk Quotas (phantom users) (https://www.linuxquestions.org/questions/debian-26/need-help-with-disk-quotas-phantom-users-746731/)

dvazart 08-11-2009 08:53 AM

Need help with disk Quotas (phantom users)
 
Hello!

After doing some tests, when I run the following command I find that there are some UIDs beginning with # :

Code:

root@myhome:/# repquota -as

*** Rapport pour les quotas user sur le périphérique /dev/sda2
Période de sursis bloc : 00:00 ; période de sursis inode : 00:00
                        Limites bloc              Limites fichier
Utilisateur    utilisé souple stricte sursis utilisé souple stricte sursis
----------------------------------------------------------------------
root      --  15153M      0      0          38511    0    0     
man      --    1076      0      0            76    0    0     
mail      --  33260      0      0              1    0    0     
news      --      4      0      0              1    0    0     
www-data  --    2380      0      0              9    0    0     
mysql    --  26684      0      0            297    0    0     
Debian-exim --    388      0    100M            18    0    0     
ftpuser  --      4      0      0              2    0    0     
awstats  --      76      0      0              4    0    0     
#500      --    2604      0      0            313    0    0     
#501      --    3352      0      0            463    0    0     
#512      --    240      0      0            22    0    0     
#1000    --    5600      0      0            586    0    0     
#1001    --    336      0      0            30    0    0     
#3001    --      12      0    200M              3    0    0     
#9307    --    3016      0    200M            342    0    0

The most strange is that these users are not in my /etc/passwd and besides, I can edit his quotas with the command:

Code:

root@myhome:/# edquota -u 500

Quotas disque pour user 500 (uid 500) :
 Système de fichiers          blocs      souple    stricte  inodes    souple  stricte
  /dev/sda2                    2604          0          0        313        0        0

How can I remove these users from quota ???

Thanks !

AlucardZero 08-11-2009 01:57 PM

Quote:

The most strange is that these users are not in my /etc/passwd
You sure? Not to insult your intelligence, but I can't see it for myself :). Do you get naything from:
Code:

grep 500 /etc/passwd
grep 9307 /etc/passwd

To find files owned by user 9307:
Code:

find / -uid 9307
I'm not sure how to delete them from quota.

dvazart 08-12-2009 01:24 AM

Of course, the first thing I did was look for them in /etc/passwd and nothing !

by contrast with the find command if I could find some files that his owns.

I suppose that if the lines begin with # the quota for these users is off, but since the file /aquota.user is encrypted, I dont know if linux does assume the typical # like comments in bash.

Thanks for your answer.


All times are GMT -5. The time now is 07:17 PM.