# quota 설정
cd /home
touch aquota.user
chmod 600 aquota.user
vi /etc/fstab
usrquota 추가
reboot
cd /sbin/
quotaoff -avug
quotacheck -avug
quotaon -avug
mount
/dev/hda2 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda5 on /home type ext3 (rw,usrquota) <<<
none on /dev/shm type tmpfs (rw)
cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults,usrquota 1 2 <<<
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
# quota 용량 제한
edquota -u test
Disk quotas for user test (uid 501):
Filesystem blocks soft hard inodes soft hard
/dev/hda5 24 4096 5000 6 20 30
blocks = 사용중인 용량(K)
soft= 제한할 용량
hard= 제한할 절대적 용량
inodes= 사용중인 파일(디렉토리)갯수
soft=제한할 파일(디렉토리)갯수
hard=제한할 절대적 파일(디렉토리)갯수
qoutaoff -avug
qoutacheck -a
qoutaon -avug
quota -u test
Disk quotas for user test (uid 501):
Filesystem blocks quota limit grace files quota limit grace
/dev/hda5 24 4096 5000 6 20 30
repquota -a
cd /home
touch aquota.user
chmod 600 aquota.user
vi /etc/fstab
usrquota 추가
reboot
cd /sbin/
quotaoff -avug
quotacheck -avug
quotaon -avug
mount
/dev/hda2 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda5 on /home type ext3 (rw,usrquota) <<<
none on /dev/shm type tmpfs (rw)
cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults,usrquota 1 2 <<<
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
# quota 용량 제한
edquota -u test
Disk quotas for user test (uid 501):
Filesystem blocks soft hard inodes soft hard
/dev/hda5 24 4096 5000 6 20 30
blocks = 사용중인 용량(K)
soft= 제한할 용량
hard= 제한할 절대적 용량
inodes= 사용중인 파일(디렉토리)갯수
soft=제한할 파일(디렉토리)갯수
hard=제한할 절대적 파일(디렉토리)갯수
qoutaoff -avug
qoutacheck -a
qoutaon -avug
quota -u test
Disk quotas for user test (uid 501):
Filesystem blocks quota limit grace files quota limit grace
/dev/hda5 24 4096 5000 6 20 30
repquota -a