[K12OSN] Modify User Quotas

M.Pribik mpribik at zoznam.sk
Mon Feb 28 20:57:34 UTC 2005


----- Original Message -----
From: "Jim Kronebusch" <jim at winonacotter.org>
To: "'Support list for opensource software in schools.'" <k12osn at redhat.com>
Sent: Monday, February 28, 2005 9:28 PM
Subject: RE: [K12OSN] Modify User Quotas


> >   [root at ...]# setquota -u templeuser 200000 500000 1000 5000 /home
>
> Could you break down for me quickly what each value is for?  I am
> guessing they are as follows
>
> 200000 Block Limit Soft
> 500000 Block Limit Hard
> 1000 File Limit Soft
> 5000 File Limit Hard

Yes it is correct.

>
> I currently don't use file limits, I let that stay unlimited as long as
> they are withing their block limit.  Is there a reason not to do this?
> I also only currently run quota on /home.  So if I want to set everyone
> to 200000 Block Limit Soft and 1200000 Block Limit Hard I would do the
> following:
>
> [root at ...]# setquota -u templeuser 200000 500000 /home

Yes it is OK. You needn't use file limits.
[root at ...]# setquota -u templeuser 200000 1200000 /home

> [root at ...]# edquota -p templeuser `awk -F: '$3>500 {print $1}'
> /etc/passwd`
>
> Then I just need to manually change my staff?

[root at ...]# edquota -p templeuser `awk -F: '$3>500 {print $1}' /etc/passwd`

 This formula will replicate automaticaly quota of templeuser  for all users
with their ID>500. If you change the value for example to
'$3>1340' , quota will be change for all users with ID higher then 1340 as
you need. List of the users is taken from /etc/passwd file.
ID of the users you can see in  SYSTEM SETTINGS->USERS  AND GROUPS.

Check and try  for several /for example last 3 users/ how does it work.
Bye. Marian



> --
> This message has been scanned for viruses and
> dangerous content by the Cotter Technology
> Department, and is believed to be clean.
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
> __________ Informacia od NOD32 1.1010 (20050227) __________
>
> Tato sprava bola preverena antivirusovym systemom NOD32.
> http://www.eset.sk
>
>




More information about the K12OSN mailing list