Quota

De whats Wiki

Dreceres ràpides: navegació, cerca

http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/ch-disk-quotas.html


Per llistar l'usage dels diferents grups

root@www:~# repquota -ag
*** Report for group quotas on device /dev/ubdc
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
Group           used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --  177768       0       0           1525     0     0       
adm       --   30960       0       0            147     0     0       
mail      --       4       0       0              1     0     0       
news      --       4       0       0              4     0     0       
www-data  --   30664       0       0           2358     0     0       
shadow    --       8       0       0              2     0     0       
utmp      --     128       0       0              5     0     0       
staff     --       4       0       0              1     0     0       
crontab   --       4       0       0              1     0     0       
whats     --    4748  400000  400000            997     0     0       
sonyhq    --    5060  400000  400000           1021     0     0       
postfix   --     124       0       0             49     0     0       
postdrop  --       8       0       0              7     0     0       
mysql     --   71488       0       0            133     0     0       
default_quota --    4324  400000  400000              7     0     0       
borram2   --  102504       0       0              1     0     0       
sony      --    7704  400000  400000           1139     0     0       
pepe      --    4740  400000  400000            996     0     0       
albert    --    4740  400000  400000            996     0     0       

Inicialitzar quota d'una partició

touch /home/aquota.user
add usrquota in fstab
mount -o remount /data/
quotacheck -cug /home