Quota on/off
Dear all,
I am trying to configure quota for the email account. I am using Redhat 8.0, sendmail and squirrelmail for my email server. I have added the below script in /etc/rc.d/rc.local : if [ -x /sbin/quotacheck ]; then echo "Checking quotas. This may take some times..." /sbin/quotacheck -avug echo "Done" fi if [ -x /sbin/quotaon ]; then echo "Enabling disk quota.." /sbin/quotaon -avug echo "Done" fi. But, when I run this script an error occur as below : quotaon: Cannot find quota file on /home [/dev/hda3] to turn quotas on/off. Which part should I edit or miss out? Thanks in advance, Regards, Sharon |
Disk quota's are a kernel compiled function. Make sure the kernel has it turned on.
|
To enable Quotas on a filesystem you must have a quota user file and/or quota group file at the root of the filesystem.
Lets assume that /home is the root of the /dev/hda3 partition: touch /home/aquota.usr touch /home/aquota.grp (this makes quota user and group file). Afterwards you must make sure that you have user and/or group quotas enabled in /etc/fstab for the partition In /etc/fstab look for the label of /dev/hda3 and insert "usrquota" and/or "grpquota" next to the "defaults" option. |
All times are GMT -5. The time now is 12:01 AM. |