I got some mixed responses and a few pretty good summaries. I must
apologize for repeating the question. I've been watching the list for it
for some time and missed it!
Here is the relevant stuff:
Thanks to Biswajit Sain and Mary Aplin (among others...)
***********************************************************
We wanted all users to have a quota of 1 megabyte. I thought I wanted a
group quota, for all my users were in the same group. I then found out
that a group quota means that a limit is set on the total space used by
*all* the users in the group combined. So, we went with user quotas.
The online docs have all the info, but assume that you know a few things
(which I didn't.)
Starting in section 7.7.3:
1. Configure the system to include diskquota subsystem by editing the
/sys/conf/NAME config file to include the line:
options QUOTA
You'll have to rebuild your kernel and reboot.
2. Use the quotacheck command to create a file where quota limits
are stored. (see quotacheck (8))
3. Use edquota to edit quota info for each user. What I did here was
first edit a file my account, since it will be on the system for a long,
long, long time. I can then use my quota file as a prototype for others.
(explained later).
When editing the quota file, the soft limit is the space you want the
user to have. My users were to have 1 meg, so 1000 is my soft limit.
The hard limit is the max they can go up to before they cannot do
anything else; my hard limit is 1100 (I'm giving them 100 blocks grace.)
For inodes in use, leave the soft and hard limits at 0.
4. Use the quotaon command to activate quotas. quotaon(8)
5. Put the line # /usr/sbin/rcmgr set QUOTA_CONFIG yes in the
/etc/rc.config file
That's basically it.
My alpha is strictly used for e-mail, ftp, etc. I want ALL accounts on
this system to have a diskquota. To do this, I edited the adduser script
and inserted the following line immediately before the exit 0 line at
the end of the file:
edquota -p aplin -u "${USER}"
-p indicates that my aplin quota file is used as a prototype. -u
indicates that it establishes a user quota.
To edit a "grace time" quota file:
1. Use edquota to set up a grace time prototype file:
edquota -t aplin
2. In this file, I have a 1 day block grace period and 0 days file grace
period.
This file "goes along" with the quota file; you don't have to
specifically indicate that it should be included when you set up quotas.
Hope this helps!!
>From pulakr_at_cableol.net Wed Oct 25 21:58:58 1995
Return-Path: <pulakr_at_cableol.net>
Subject: [A] how to set disk quotas
Status: OR
>Sender: alpha-osf-managers-relay_at_sws1.ctd.ornl.gov
>Date: Tue, 5 Sep 1995 09:42:31 -0400 (EDT)
>From: Carl Joel Kuzmich <cjk_at_omedsrvb.omed.pitt.edu>
>Reply-To: Carl Joel Kuzmich <cjk_at_omedsrvb.omed.pitt.edu>
>Subject: [A] how to set disk quotas
>To: alpha-osf-managers_at_ornl.gov
>Followup-To: poster
>
>Thanks to all who replied.
>
>These are a summary of the steps required to set quota on a user or group
>of users.
>
>1.) edit /etc/fstab ===> /dev/rz14e /usr ufs rw,userquota 1 2
>
>2.) run ===> /usr/sbin/quotacheck /dev/rz14e
>
>3.) run ===> /usr/sbin/quotaon /dev/rz14e
>
>4.) /usr/sbin/edquota -u the-user-name
> change the soft & hard block limits (1024 = 1/2 MB)
>
>5.) run ===> /usr/sbin/rcmgr set QUOTA_CONFIG yes
__| \ \ / __| _ \ _ \ Jim Esten sysop_at_acs.stritch.edu
\__ \ \ / \__ \ ( | __/
\____/ _| \____/ \___/ _| "In the beginning was the word,
_____________________________ and the word was ..... adjust"
....also at jesten_at_msn.com
....find me on the web at
http://www.stritch.edu/jestenhome.html
Received on Thu Nov 16 1995 - 03:50:55 NZDT