04-14-04 07: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 follow
ing:
>
> /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 a
quota.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 an
y
> ## 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 dur
ing
> 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.
[ Post a follow-up to this message ]
|