Disk quotas

Posted on

Server yang aku gunakan adalah debian :

apt-get install quota quotatool

nano /etc/fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/mapper/enggang-root /    ext3   defaults,errors=remount-ro 0   1
/dev/sda1       /boot   ext3    defaults        0       2
/dev/mapper/enggang-home /home   ext3   defaults,usrquota,grpquota        0       2
/dev/mapper/enggang-tmp /tmp   ext3    defaults        0       2
/dev/mapper/enggang-usr /usr   ext3    defaults        0       2
/dev/mapper/enggang-var /var   ext3    defaults        0       2
/dev/mapper/enggang-swap_1 none   swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0

touch /quota.user /quota.group
chmod 600 /quota.*
mount -o remount /home

quotacheck -avugm
quotaon -avug

Untuk melakukan limit gunakan perintah :

quotatool -u <nama_user> -bq 200M -l ‘250 Mb’ /home

atau dengan perintah

edquota <nama_user>

Selesai !!!

Leave a Reply

Your email address will not be published. Required fields are marked *