Quota InstallationQuota of Linux is designed per user in one partition.(Recommend: enable in ext3 partition) Step 1 [root@local~]# yum install quota Install quota rpm via yum.Step 2 Quota function limited to the whole partition only. Example: We set the quota to /home , so we know it is /dev/sda3 In /etc/fstab, append 'usrquota,grpquota' to the line which partition is limited with quota [root@local~]# mount -a [root@local~]# touch /home/aquota.user [root@local~]# /sbin/quotacheck -m -f /home [root@local~]# quotaon -vug /home Turn on the quota function on partition.Step 3 We set the quota soft limit 800M, hard limit 1G to user alan (First one is vi mode) [root@local~]# repquota -u /home View the quota statusServer is hosted by Alanstudio Linux Operating System Recommend screen resolution 1024 x 768 / IE / FireFox Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved. |