[K12OSN] Modify User Quotas

M.Pribik mpribik at zoznam.sk
Mon Feb 28 16:45:52 UTC 2005


Try those lines written directly in terminal window:

A. this line will write all users having current quotas more than limits
[root at ...]#  repquota -a | awk '/+/'

B.  First set template user for quotas folder:
    example:
  [root at ...]# setquota -u templeuser 200000 500000 1000 5000 /home
  [root at ...]# setquota -u templeuser 200000 500000 1000 5000 /tmp
  [root at ...]# setquota -u templeuser 200000 500000 1000 5000 /var

C This line will repeat all quotas from user "templeuser" to all other users
with ID greater then 500
[root at ...]# edquota -p templeuser `awk -F: '$3>500 {print $1}' /etc/passwd`

 check for correct apostrophes.
I hope it helps you.
Regards Marian.

----- Original Message -----
From: "Jim Kronebusch" <jim at winonacotter.org>
To: <k12osn at redhat.com>
Sent: Monday, February 28, 2005 4:32 PM
Subject: [K12OSN] Modify User Quotas


> Does anyone know how to modify and entire list of user quotas?
> Currently my students are set at a 200MB hard limit and staff at a 500MB
> hard limit.  I want to change this to a 200MB soft limit and 500MB soft
> limit respectively.  Then set everyones hard limit to the soft limit +
> 1GB.  Now some of my staff have custom settings because they have
> requested them.  I would like to have a script or something that checked
> current hard quotas, set soft quotas with the same limit, then reset
> hard quotas to the soft limit + 1GB.
>
> Is this possible?
>
> Thanks
>
> Jim Kronebusch
> Cotter Tech Department
> 507-453-5188
> jim at winonacotter.org
>
>
> --
> 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