Sunday, 8 January 2012

CONFIGURE DISK QUOTA IN RHEL5

 useradd jane
vim /etc/fstab
/dev/vol0/home /home ext3 defaults,usrquota 1 2
mount -o remount,rw /home/
ls /home/
quotacheck -cM /home/
ls /home/
repquota -a
edquota jane
block size
40 80
quotaon /home/
repquota -a


su - jane
dd if=/dev/zero of=test bs=1000 count=40 (you get warning)
ls -lhd test
repquota -a (check as root)
dd if=/dev/zero of=test bs=1000 count=80 (you get warning and a failure message)
repquota -a (check as root)

No comments:

Post a Comment