LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 03: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, 04: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, 06: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:13 PM
Quota ziox Linux - General 3 05-07-2004 10:33 PM
quota lynger Linux - Software 0 04-26-2004 11:53 PM
How to Quota jcb_dreamvsat Linux - General 2 07-16-2003 04:56 AM
quota on RH 7.3 keevitaja Linux - Newbie 5 08-17-2002 10:53 AM


All times are GMT -5. The time now is 08:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration