SUMMARY: quota

From: Ezequiel H. Panepucci <zac_at_laplace.csb.yale.edu>
Date: Tue, 22 Feb 2000 11:30:25 -0500 (EST)

Thanks to all who responded.

Michael Crowley (below) got the bull's eye and pointed out
that I should always put the OS version together with
the question. I do use Tru64 5.0.

The problem is related to some bug with the quota system that
does not allow the use of userquotas without groupquotas.

He also suggested other good mounting options which make a lot
of sense and will be implemented.

Many thanks,
        Zac

From: Richard Jackson <rjackson_at_portal.gmu.edu>
From: "Rochelle Lauer, Yale Univ Physics" <LAUER_at_hepvms.physics.yale.edu>
From: John Peter Gormley <jgormley_at_scu.edu.au>
From: Irene A. Shilikhina <irene_at_alpha.iae.nsk.su>

From: Michael A Crowley <mcrowley_at_mtholyoke.edu>

(It is good to include the operating system version.)

If you are using tu50, include "groupquota" in the line,
even if you are not using it. There is a problem with 50
concerning this and having both in there works around the problem.

Check the man pages on mount and fstab to see the effects
of the last two numbers. "0 0" is used in NFS mounted file
systems, but "1 2" is normally done for UFS.

I would also recommend for a home directory system restricting
SUID programs and device files for security. The final line would be:

/dev/disk/dsk5c /mnt/home ufs rw,userquota,groupquota,nosuid,nodev 1 2

-mike



############################################################################
        ORIGINAL QUESTION
############################################################################
On Mon, 21 Feb 2000, Ezequiel H. Panepucci wrote:

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?
Received on Tue Feb 22 2000 - 16:31:49 NZDT

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