tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: quota
@ 2000-02-22 16:30 Ezequiel H. Panepucci
  0 siblings, 0 replies; only message in thread
From: Ezequiel H. Panepucci @ 2000-02-22 16:30 UTC (permalink / raw)
  To: tru64-unix-managers

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@portal.gmu.edu>
From: "Rochelle Lauer, Yale Univ Physics" <LAUER@hepvms.physics.yale.edu>
From: John Peter Gormley <jgormley@scu.edu.au>
From: Irene A. Shilikhina <irene@alpha.iae.nsk.su>

From: Michael A Crowley <mcrowley@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?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-02-22 16:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-22 16:30 SUMMARY: quota Ezequiel H. Panepucci

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox