LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2003, 02:23 AM   #1
sharon
LQ Newbie
 
Registered: Jun 2003
Location: Malaysia
Posts: 7

Rep: Reputation: 0
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
 
Old 07-21-2003, 03:08 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
Disk quota's are a kernel compiled function. Make sure the kernel has it turned on.
 
Old 07-21-2003, 05:17 AM   #3
folavo
LQ Newbie
 
Registered: Jul 2003
Location: Lisbon, Portugal
Distribution: Red Hat 9.0
Posts: 16

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp quota probs - 0kb files at quota limit ph_xm Linux - Newbie 0 02-02-2005 11:13 AM
Quota ziox Linux - General 3 05-07-2004 09:33 PM
quota lynger Linux - Software 0 04-26-2004 10:53 PM
How to Quota jcb_dreamvsat Linux - General 2 07-16-2003 03:56 AM
quota on RH 7.3 keevitaja Linux - Newbie 5 08-17-2002 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration