|
Home > Archive > Red Hat Installation > April 2004 > Quota question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Sasa Stupar 2004-04-11, 3:33 pm |
| Hi!
I am running a mail server with sendmail on RH8. I have installed
complete dist of RH8 and yet there are no quotas enabled on the
filesystem. I want to enable quota for users (mailbox size) but I really
don't know how to do it.
Please help!
Regards,
Sasa
| |
| Robert M. Riches Jr. 2004-04-11, 3:33 pm |
| In article <c56p5k$hli$1@planja.arnes.si>, Sasa Stupar wrote:
>
> I am running a mail server with sendmail on RH8. I have installed
> complete dist of RH8 and yet there are no quotas enabled on the
> filesystem. I want to enable quota for users (mailbox size) but I really
> don't know how to do it.
Doing 'man -k quota' (without the quote marks) will at least
get you started.
Good luck.
Robert Riches
spamtrap42@verizon.net
(Yes, that is one of my email addresses.)
| |
| Sasa Stupar 2004-04-11, 3:33 pm |
| Robert M. Riches Jr. pravi:
> In article <c56p5k$hli$1@planja.arnes.si>, Sasa Stupar wrote:
>
>
>
> Doing 'man -k quota' (without the quote marks) will at least
> get you started.
>
> Good luck.
>
> Robert Riches
> spamtrap42@verizon.net
> (Yes, that is one of my email addresses.)
Yes, I've read that but I don't understand it realy good.
There is a command setquota but I don't know how to implement it on the
user. I am new to linux so be understandable, I am learning on the fly.
Sasa
| |
| John Murtari 2004-04-14, 2:39 pm |
| Sasa Stupar <sasa@stupar.homelinux.net> writes:
> Hi!
>
> I am running a mail server with sendmail on RH8. I have installed
> complete dist of RH8 and yet there are no quotas enabled on the
> filesystem. I want to enable quota for users (mailbox size) but I
> really don't know how to do it.
>
> Please help!
>
> Regards,
> Sasa
Okay, here are a few quick notes on how to set it up for RH.
MANAGING USER QUOTAS
1. Enable user quota support on each file system by editing /etc/fstab -
-- add usrquota to mount options
/dev/hda2 /usr ext3 defaults,usrquota 1 1
2. Create "aquota.user" file (see #3)
3. Go to the root of each partition you wish to enable quota --
touch aquota.user
chmod 600 aquota.user
4. Reboot system for the changes to take effect.
Look at /etc/rc.d/rc.sysinit -- Quotas get enforced automatically
upon reboot.
If not, then go to #5 below:
5. Enforce the quotas for the designated file systems by typing the following:
/usr/sbin/quotaon -avu
Options (from man pages)
--------------------------
-a: All automatically mounted (no noauto option) non-NFS
filesystems in /etc/fstab with quotas will have their quotas
turned on. This is normally used at boot time to enable quotas.
-v: Display a message for each filesystem where quotas are turned on.
-u: Manipulate user quotas. This is the default.
6. Not a bad idea to run quotacheck at this point (if convenient):
/usr/sbin/quotacheck -avumf (m for no read-only, vsfv0 for version 2 aquota.user)
Options (from man pages)
-------------------------
-a: Check all mounted non-NFS filesystems in /etc/mtab
-v: quotacheck reports its operation as it progresses. Normally
it operates silently.
-u: Only user quotas listed in /etc/mtab or on the filesystems
specified are to be checked. This is the default action.
## This is a BIG one if you want to set a lot of quotas all at once.
## There is NOT a command line option that allows you to set a quota to any
## value for a user. BUT, there is one that allows you to assign a quota
## based on using the same quota as another user:
7. Need to set quota limits for all the existing users (default 400 MBytes) --
Set using "prototypical users" Command: edquota -p meg-400 $userId
NOTE: if you are doing this for a mailserver be careful with TMP files
that can be created by POP programs. YOu may set the quota at 50 Meg, but
users are hurt when they reach 25 Meg since POP wants to copy the file during
processing. You may want to put temp files on another filesystem or if
a guy hits his quota, he can't do anything about it since even attempting to
read the mail would put him farther over.
Hope this helps.
Best regards!
--
John
________________________________________
___________________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/
| |
| Sasa Stupar 2004-04-14, 2:39 pm |
| John Murtari pravi:
> Sasa Stupar <sasa@stupar.homelinux.net> writes:
>
>
>
>
> Okay, here are a few quick notes on how to set it up for RH.
>
> MANAGING USER QUOTAS
>
> 1. Enable user quota support on each file system by editing /etc/fstab -
> -- add usrquota to mount options
>
> /dev/hda2 /usr ext3 defaults,usrquota 1 1
>
> 2. Create "aquota.user" file (see #3)
>
> 3. Go to the root of each partition you wish to enable quota --
>
> touch aquota.user
> chmod 600 aquota.user
>
> 4. Reboot system for the changes to take effect.
> Look at /etc/rc.d/rc.sysinit -- Quotas get enforced automatically
> upon reboot.
>
> If not, then go to #5 below:
>
> 5. Enforce the quotas for the designated file systems by typing the following:
>
> /usr/sbin/quotaon -avu
>
> Options (from man pages)
> --------------------------
> -a: All automatically mounted (no noauto option) non-NFS
> filesystems in /etc/fstab with quotas will have their quotas
> turned on. This is normally used at boot time to enable quotas.
>
> -v: Display a message for each filesystem where quotas are turned on.
>
> -u: Manipulate user quotas. This is the default.
>
> 6. Not a bad idea to run quotacheck at this point (if convenient):
>
> /usr/sbin/quotacheck -avumf (m for no read-only, vsfv0 for version 2 aquota.user)
>
> Options (from man pages)
> -------------------------
> -a: Check all mounted non-NFS filesystems in /etc/mtab
>
> -v: quotacheck reports its operation as it progresses. Normally
> it operates silently.
>
> -u: Only user quotas listed in /etc/mtab or on the filesystems
> specified are to be checked. This is the default action.
>
>
> ## This is a BIG one if you want to set a lot of quotas all at once.
> ## There is NOT a command line option that allows you to set a quota to any
> ## value for a user. BUT, there is one that allows you to assign a quota
> ## based on using the same quota as another user:
>
> 7. Need to set quota limits for all the existing users (default 400 MBytes) --
> Set using "prototypical users" Command: edquota -p meg-400 $userId
>
>
> NOTE: if you are doing this for a mailserver be careful with TMP files
> that can be created by POP programs. YOu may set the quota at 50 Meg, but
> users are hurt when they reach 25 Meg since POP wants to copy the file during
> processing. You may want to put temp files on another filesystem or if
> a guy hits his quota, he can't do anything about it since even attempting to
> read the mail would put him farther over.
>
> Hope this helps.
> Best regards!
>
Thanx, now it is much more clear than reading the man page.
|
|
|
|
|