quota

From: Ezequiel H. Panepucci <zac_at_laplace.csb.yale.edu>
Date: Mon, 21 Feb 2000 21:45:10 -0500 (EST)

Hi There,

I have enabled quotas for a filesystem but it doesn't seem that it
gets enforced:

fstab has
/dev/disk/dsk5c /mnt/home ufs rw,userquota 0 0

I executed:
        quotacheck /mnt/home
        quotaon -au

I have edquota'd user "zac" :

##################################################################
Quotas for user zac:
/mnt/home: blocks in use: 2, limits (soft = 1000, hard = 3000)
        inodes in use: 17, limits (soft = 0, hard = 0)
##################################################################

Then I have put files on his account and run quotacheck again
to update the control file "quota.user"

So now "quota zac" returns:
     Filesystem blocks quota limit grace files quota limit grace
      /mnt/home 4589* 0 3000 10days 17 0 0

I suppose I have passed all limits but I still can create files
as user zac.

Also, the man page for edquota says:
######## man page for edquota ##########
  Setting a hard limit to 0 (zero) indicates that no quota should be imposed.
  Setting a hard limit to 1 (one) indicates that no allocations should be
  permitted. Setting a soft limit to 1 (one) with a hard limit of 0 (zero)
  indicates that allocations should be permitted on only a temporary basis
  (see the -t flag). The current usage information in the file is for
  informational purposes; only the hard and soft limits can be changed.
########################################

I thought we were supposed to put the amount of blocks a user
is allowed to use. Acctually I thought the fluxogram for this was

IF hardlimit_exceeded THEN

        do not allow creation of more files

ELSE IF softlimit_exceeded AND NOT graceperiod_exceeded THEN

        allow creation of files

ELSE IF softlimit_exceeded AND graceperiod_exceeded THEN

        do not allow creation of more files

ELSE

        allow creation of files
END


My guess is that I don't understand quotas, could someone point me to
a tutorial?

Many thanks,
        Zac


--
"The nice thing about standards is that you have so many to choose from."
 -- Andrew S. Tanenbaum, _Computer Networks_, 2nd ed, p.254
--
| Ezequiel Panepucci (Zac)         Molecular Biophysics & Biochemistry
| Scientific programmer            Bass Center Room 437
| Office: 203-432-5066             266 Whitney Avenue
| FAX:    203-432-6946             Yale University
| mailto:zac_at_laplace.csb.yale.edu  New Haven, CT 06511, USA.
| http://atb.csb.yale.edu/~zac
Received on Tue Feb 22 2000 - 02:46:16 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT